title: Moving ASP.NET MVC website to a server
body: <p>Ive been developing a website in VS 2013, and been testing it using the built in IIS. </p>
  
  <p>Ive not decided to move it to the server where it will eventually lie. </p>
  
  <p>I have all my dll files in the bin folder, published the project etc, but i still receive </p>
  
  <blockquote>
    <p>Internal Error 500</p>
  </blockquote>
  
  <p>I previously had to downgrade my project from .NET 4.5 to 4.0 because there is no option to upgrade my server. Therefore i had to change alot of the web.config files</p>
  
  <p>Any ideas why i still receive this error?</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
  For more information on how to configure your ASP.NET application, please        visit
   http://go.microsoft.com/fwlink/?LinkId=301880
   --&gt;
   &lt;configuration&gt;
       &lt;configSections&gt;
  
           &lt;section name="entityFramework"     type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,    EntityFramework, Version=6.0.0.0, Culture=neutral,   PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
        &lt;!-- For more information on Entity Framework configuration, visit    http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;&lt;/configSections&gt;
      &lt;appSettings&gt;
       &lt;add key="webpages:Version" value="3.0.0.0" /&gt;
        &lt;add key="webpages:Enabled" value="false" /&gt;
        &lt;add key="ClientValidationEnabled" value="true" /&gt;
        &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
      &lt;/appSettings&gt;
    &lt;system.web&gt;
  &lt;compilation debug="true" targetFramework="4.0" /&gt;
  
  &lt;httpRuntime /&gt;
   &lt;/system.web&gt;
    &lt;runtime&gt;
     &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
       &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="Newtonsoft.Json" culture="neutral"   publicKeyToken="30ad4fe6b2a6aeed" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="System.Web.Optimization"   publicKeyToken="31bf3856ad364e35" /&gt;
      &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930"   newVersion="1.6.5135.21930" /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" /&gt;
    &lt;/dependentAssembly&gt;
    &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt;
      &lt;bindingRedirect oldVersion="4.0.0.0-4.0.0.1" newVersion="4.0.0.1" /&gt;
    &lt;/dependentAssembly&gt;
  &lt;/assemblyBinding&gt;
  &lt;/runtime&gt;
    &lt;entityFramework&gt;
    &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory,   EntityFramework"&gt;
     &lt;parameters&gt;
      &lt;parameter value="mssqllocaldb" /&gt;
     &lt;/parameters&gt;
     &lt;/defaultConnectionFactory&gt;
     &lt;providers&gt;
     &lt;provider invariantName="System.Data.SqlClient"   type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
     &lt;/providers&gt;
    &lt;/entityFramework&gt;
     &lt;connectionStrings&gt;
     &lt;add name="team06Entities" c  connectionString="metadata=res://*/Models.DatabaseModel.csdl|res://*/Models.DatabaseModel.ssdl|res://*/Models.DatabaseModel.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=co-web;initial catalog=team06;persist security info=True;user id=team06;password=******;multipleactiveresultsets=True;application name=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
     &lt;/connectionStrings&gt;
    &lt;/configuration&gt;
  </code></pre>