I changed PC / Windows (XP -> 7) so IIS (6 -> 7,5) and trying to move my website
But I can't run my site from this server . . . error :
Error description: Error HTTP 500.19 - Internal Server Error
The requested page is not available because of incorrect configuration data for this page.
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
Configuration
<handlers> <remove name="WebServiceHandlerFactory-Integrated" />
...
my web.config part :
<modules> <remove name="ScriptModule" /> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </modules> <handlers> <remove name="WebServiceHandlerFactory-Integrated" /> <remove name="ScriptHandlerFactory" /> <remove name="ScriptHandlerFactoryAppServices" /> <remove name="ScriptResource" /> <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" /> <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" /> <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" /> </handlers>
So what's wrong ?
My trying : if I make it -
<modules allowDefinition="MachineToApplication" overrideModeDefault="Deny"> <remove name="ScriptModule"/> <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules> <handlers overrideModeDefault="Deny"> <remove name="WebServiceHandlerFactory-Integrated"/>
I've got error : Unrecognized attribute "overrideModeDefault"
so I can't add it in configSections because it tells me that It already exist here.
and when I changed IIS to Read/Write (like on picture) Ive got a new error :
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.
The error message itself points out the location of the duplicate entries. To resolve this problem, delete the duplicate entry in the ApplicationHost. config file for the authorization rule.
Solution. Open IIS Manager, select root node( the hosting server), in the middle panel double click Feature Delegation. In right panel select Custom Site Delegation..., In upper part of middle panel, click the drop down list and select your site.
IIS error The error 500.19 is an internal server error often occurring on a server using Microsoft IIS software. It indicates that the configuration data for the page is invalid. To solve the issue, delete the malformed XML element from the Web. config file or from the ApplicationHost.
I had a problem with runAllManagedModulesForAllRequests, code 0x80070021 and http error 500.19 and managed to solve it
With command prompt launched as Admnistrator, go to : C:\Windows\Microsoft.NET\Framework64\v4.0.30319>
execute
aspnet_regiis -i
bingo!
Check this in the web.config and change overrideModeDefault
from Deny
to Allow
.
<configSections> <sectionGroup name="system.webServer"> <section name="handlers" overrideModeDefault="Deny" /> <section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
You can also manage sections on web server level in your IIS management console from "Feature Delegation".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With