samedi 9 mai 2015

Moving ASP.NET MVC website to a server

Ive been developing a website in VS 2013, and been testing it using the built in IIS.

Ive not decided to move it to the server where it will eventually lie.

I have all my dll files in the bin folder, published the project etc, but i still receive

Internal Error 500

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

Any ideas why i still receive this error?

    <?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please        visit
 http://ift.tt/1dLFFYl
 -->
 <configuration>
     <configSections>

         <section name="entityFramework"     type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection,    EntityFramework, Version=6.0.0.0, Culture=neutral,   PublicKeyToken=b77a5c561934e089" requirePermission="false" />
      <!-- For more information on Entity Framework configuration, visit    http://ift.tt/1eigFsq --></configSections>
    <appSettings>
     <add key="webpages:Version" value="3.0.0.0" />
      <add key="webpages:Enabled" value="false" />
      <add key="ClientValidationEnabled" value="true" />
      <add key="UnobtrusiveJavaScriptEnabled" value="true" />
    </appSettings>
  <system.web>
<compilation debug="true" targetFramework="4.0" />

<httpRuntime />
 </system.web>
  <runtime>
   <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
     <dependentAssembly>
      <assemblyIdentity name="Newtonsoft.Json" culture="neutral"   publicKeyToken="30ad4fe6b2a6aeed" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Optimization"   publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-1.6.5135.21930"   newVersion="1.6.5135.21930" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="4.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
  </dependentAssembly>
</assemblyBinding>
</runtime>
  <entityFramework>
  <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory,   EntityFramework">
   <parameters>
    <parameter value="mssqllocaldb" />
   </parameters>
   </defaultConnectionFactory>
   <providers>
   <provider invariantName="System.Data.SqlClient"   type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
   </providers>
  </entityFramework>
   <connectionStrings>
   <add name="team06Entities" c  connectionString="metadata=http://res*/Models.DatabaseModel.csdl|res*/Models.DatabaseModel.ssdl|res*/Models.DatabaseModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=co-web;initial catalog=team06;persist security info=True;user id=team06;password=******;multipleactiveresultsets=True;application name=EntityFramework&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>
  </configuration>

Aucun commentaire:

Enregistrer un commentaire