Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to keep clean ASP.NET web.config file for a new MVC3/Azure project using only <system.webServer>?
    text
    copied!<p>I just created a new project in MVC3 using EF4 code first deployed on Windows Azure. I want to keep my "web.config" file as clean as possible because it's a little complicated to understand all tags it contains.</p> <p>I notice two sections: <code>&lt;system.web&gt;</code> and <code>&lt;system.webServer&gt;</code></p> <p>The first is for IIS6 and the second for IIS7+ I do not need backward compatibility so want to delete the first.</p> <p>I converted a good part of the first into the second, but I cannot find how to convert these sections:</p> <pre><code>&lt;system.web&gt; &lt;authentication mode="None" /&gt; &lt;compilation debug="true" targetFramework="4.0"&gt; &lt;assemblies&gt; &lt;add assembly="System.Web.Helpers, Version=2.0.0.0, Culture=neutral /&gt; &lt;add assembly="System.Web.Mvc, Version=4.0.0.0, Culture=neutral /&gt; &lt;add assembly="System.Web.WebPages, Version=2.0.0.0, Culture=neutral /&gt; &lt;add assembly="Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral /&gt; &lt;/assemblies&gt; &lt;/compilation&gt; &lt;pages validateRequest="false"&gt; &lt;namespaces&gt; &lt;add namespace="System.Web.Helpers" /&gt; &lt;add namespace="System.Web.Mvc" /&gt; &lt;add namespace="System.Web.Mvc.Ajax" /&gt; &lt;add namespace="System.Web.Mvc.Html" /&gt; &lt;add namespace="System.Web.Routing" /&gt; &lt;add namespace="System.Web.WebPages" /&gt; &lt;/namespaces&gt; &lt;/pages&gt; &lt;/system.web&gt; </code></pre> <p>How to do this so that I can delete the deprecated <code>&lt;system.web&gt;?</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload