title: Swapping from ASP .Net Core 1.0.0-rc2-final to 1.0.0 causes published site to fail
body: <p>I've just upgraded my ASP project from ASP .Net Core 1.0.0-rc2-final to 1.0.0. There were two issues that were not handled by the Nuget Package Manager. </p>
  
  <p>Firstly </p>
  
  <pre class="lang-json prettyprint-override"><code>"Microsoft.NETCore.App": {
    "version": "1.0.0-rc2-3002702",
    "type": "platform"
  },
  </code></pre>
  
  <p>was updated to just </p>
  
  <pre class="lang-json prettyprint-override"><code>"Microsoft.NETCore.App": "1.0.0",
  </code></pre>
  
  <p>which failed to compile and so I changed that to</p>
  
  <pre class="lang-json prettyprint-override"><code>"Microsoft.NETCore.App": {
    "version": "1.0.0",
    "type": "platform"
  },
  </code></pre>
  
  <p>Secondly I needed to change</p>
  
  <pre class="lang-csharp prettyprint-override"><code>services.AddMvc();
  </code></pre>
  
  <p>to </p>
  
  <pre class="lang-csharp prettyprint-override"><code>services
      .AddMvc()
      .AddJsonOptions(options =&gt; options.SerializerSettings.ContractResolver = new DefaultContractResolver());
  </code></pre>
  
  <p>in my <code>Startup.cs</code> file. The only other changes were those made by Nuget to my <code>project.json</code> file.</p>
  
  <p>The project runs without issue locally, and successfully publishes from VS2015 to Azure. However, when I open a browser onto my site on Azure I get the error message </p>
  
  <blockquote>
    <p>The specified CGI application encountered an error and the server terminated the process.</p>
  </blockquote>
  
  <p>Why? How do I diagnose and fix this error?</p>
  
  <p>(N.B. Following @Pawel's suggestion below my <code>web.config</code>, <code>project.json</code>, and <code>Startup.cs</code> are available in <a href="https://gist.github.com/dumbledad/d86875638be358fad0b4b0c7fc5f27d9" rel="nofollow">this Gist</a>.)</p>