title: ASP.NET IIS Web.config [Internal Server Error]
body: <p>I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website</p>
  
  <p>But I can't run my site from this server . . .
  error :</p>
  
  <blockquote>
    <blockquote>
      <p>Error description: Error HTTP 500.19 -
      Internal Server Error</p>
    </blockquote>
    
    <p>The requested page is not available
    because of incorrect configuration
    data for this page.</p>
    
    <p>Error Details Module IIS Web Core
    Notice BeginRequest Handler Not yet
    determined Error 0x80070021
    Configuration error This configuration
    section can not be used in this way.
    This happens when the section is
    locked at the parent level. Locking is
    either by default (overrideModeDefault
    = "Deny"), or installed directly by the tag location with overrideMode =
    "Deny" or inherited property
    allowOverride = "false". The
    configuration file \ \? \ D: \
    Projects \ Flow WEB \ Sources \
    web.config The requested URL-address
    https: / / 192.168.0.172:443 /
    Physical Path D: \ Projects \ Flow WEB
    \ Sources Logon Method Not yet
    determined Users who have logged on
    yet to be determined Channel</p>
    
    <blockquote>
      <p>Configuration</p>
    </blockquote>
  </blockquote>
  
  <pre><code>&lt;handlers&gt;   
  &lt;remove name="WebServiceHandlerFactory-Integrated" /&gt;
  </code></pre>
  
  <p>...</p>
  
  <p>my web.config part :</p>
  
  <pre><code>    &lt;modules&gt;
          &lt;remove name="ScriptModule" /&gt;
          &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
      &lt;/modules&gt;
  
      &lt;handlers&gt;
          &lt;remove name="WebServiceHandlerFactory-Integrated" /&gt;
          &lt;remove name="ScriptHandlerFactory" /&gt;
          &lt;remove name="ScriptHandlerFactoryAppServices" /&gt;
          &lt;remove name="ScriptResource" /&gt;
          &lt;add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
          &lt;add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
      &lt;/handlers&gt;
  </code></pre>
  
  <p>So what's wrong ?</p>
  
  <p>My trying :
  if I make it -</p>
  
  <pre><code>        &lt;modules allowDefinition="MachineToApplication" overrideModeDefault="Deny"&gt;
          &lt;remove name="ScriptModule"/&gt;
          &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;&lt;/modules&gt;
      &lt;handlers overrideModeDefault="Deny"&gt;
          &lt;remove name="WebServiceHandlerFactory-Integrated"/&gt;
  </code></pre>
  
  <p>I've got error :
  Unrecognized attribute "overrideModeDefault"</p>
  
  <p>so I can't add it in configSections because it tells me that It already exist here.</p>
  
  <p>and when I changed IIS to Read/Write (like on picture) Ive got a new error :</p>
  
  <pre><code>    Error description:
  Error HTTP 404.3 - Not Found
  The requested page can not be displayed because of the configuration expansion. If the page is a script, add a handler. If you need to download the file, add a MIME.
  Error Details
  Module StaticFileModule
  Notice ExecuteRequestHandler
  Handler StaticFile
  Error 0x80070032
  The requested URL-address https: / / 192.168.0.172:80 / Default.aspx
  Physical Path D: \ Projects \ Flow WEB \ Sources \ Default.aspx
  Anonymous Logon
  Users who have logged Anonymous
  The most likely reasons:
  
      * Perhaps there is no comparison handlers. By default, all content is processed by a handler static files.
      * Perhaps the component to which the access is not installed.
      * Corresponding MIME map is not activated for the website or application. Warning: Do not create a MIME map for content that users should not load - say, for the pages. ASPX or files. Config.
      * If ASP.NET is not installed.
  </code></pre>