caminero21
New Member
hi everyone and thanks reading my serious issue with ASP.Net which kill all my time these days, I googled and test every thing but don't success.I have written a website using \[code\]VS2010Express\[/code\] it works nice in localhost but when I copy source codes to a shared host I got this error:\[code\]HTTP Error 500.0 - Internal Server Error . The page cannot be displayed because an internal server error has occurred.\[/code\]\[code\]Module AspNetInitializationExceptionModuleHandler PageHandlerFactory-IntegratedError Code 0x00000000\[/code\]More detailed info of my project:[*]I used entity-framework 4.4.20627.0[*]using .net 4this is my web.config i think maybe there is something wrong:\[code\]<?xml version="1.0"?>\[/code\]\[code\]<configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/></configSections><connectionStrings> <add name="AmsDbContext" connectionString="server=.\SqlExpress;integrated security=SSPI;database=AmsDb" providerName="System.Data.SqlClient"/></connectionStrings><system.webServer> <httpErrors errorMode="Detailed" /> <asp scriptErrorSentToBrowser="true"/> <directoryBrowse enabled="false" /></system.webServer><entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework"/></entityFramework><system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> </assemblies> </compilation> <profile> <providers> <clear/> <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/> </providers> </profile> <roleManager enabled="false"> <providers> <clear/> <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/> <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/> </providers> </roleManager> <machineKey decryption="AES" validation="SHA1" decryptionKey="blablabla" validationKey="blablabla" /> <sessionState cookieName="SessionID" /> <authentication mode="Forms"> <forms loginUrl="~/login.aspx" name="LoginKey" defaultUrl="~/Default.aspx" protection="All" timeout="6000" path="/" requireSSL="false" slidingExpiration="true" enableCrossAppRedirects="false" cookieless="UseDeviceProfile" domain=""> </forms> </authentication></system.web>\[/code\]and this is packages.config :\[code\]<packages> <package id="EntityFramework" version="5.0.0" targetFramework="net40" /> <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net40" /> <package id="WebActivator" version="1.4.4" targetFramework="net40" /></packages>\[/code\]Thanks in advance.