title: Azure Website ASP.net WebPages "The page cannot be displayed because an internal server error has occurred."
body: <p>I've developed an application in WebPages and im hosting the website on Azure. Its giving me the error "The page cannot be displayed because an internal server error has occurred."
  I'm not sure what i'm doing wrong.
  Heres the Web.config file.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.5"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
          &lt;add assembly="System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
          &lt;add assembly="System.Web.Webpages, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
        &lt;/assemblies&gt;
          &lt;/compilation&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
        &lt;customErrors mode="Off"/&gt;
  
    &lt;/system.web&gt;
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;remove invariant="System.Data.SqlServerCe.4.0" /&gt;
              &lt;add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
      &lt;runtime&gt;
        &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
           &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" culture="neutral"/&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="2.0.0.0"/&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral"/&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="2.0.0.0"/&gt;
        &lt;/dependentAssembly&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" culture="neutral"/&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-1.0.0.0" newVersion="2.0.0.0"/&gt;
        &lt;/dependentAssembly&gt;
        &lt;/assemblyBinding&gt;
     &lt;/runtime&gt;
  
  
    &lt;connectionStrings&gt;&lt;add name="SQLAzure" connectionString="Data Source=###;Initial Catalog=###;User ID=### ;Password=###;Encrypt=true;Trusted_Connection=false;" providerName="System.Data.SqlClient" /&gt;
  
  &lt;/connectionStrings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>If I remove the assemblyBindings  "Could not load file or assembly 'System.Web.Helpers'" error pops up. Any help would be great, thanks.</p>