IIS7 installation ASP.NET under Windows 2008 encounters the following error: HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the relevant configuration data for that page is invalid.
Detailed error information module IIS Web Core
Notify BeginRequest
Treatment procedures have not yet been determined
Error code 0x80070021
Misconfiguration This configuration section cannot be used in this path. This occurs if the section is locked at the parent level. Locking is set by default (overrideModeDefault="Deny") or explicitly by a location tag that contains overrideMode="Deny" or the old allowOverride="false".
Configure the source
219: <add name="scrip remove tModule" preCondition="managedHandler" type="System.Web.Handlers.scrip remove tModule, System.Web.Extensions, Version=3.5.0.0, culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules>
220: <handlers>
221: <remove name="WebServiceHandlerFactory-Integrated"/>
Workaround:
Control Panel - > Programs and Features - > Turn Windows Features on or Off - > Role
Here, select Add if you don't already have Web Server (IIS) installed.
If already installed, select "Web Server (IIS)" > add the role service.
Select "Application Development (Installed)" - > "ASP.NET".
Other similar error 1:
HTTP Error 500.19 - Internal Server Error Configuration error: This configuration section cannot be used in this path. This occurs if the section is locked at the parent level. Locking is set by default (overrideModeDefault="Deny"), or explicitly by a location tag that contains overrideMode="Deny" or the old allowOverride="false".
This error occurs because IIS 7 uses a more secure web.config management mechanism that locks configuration items by default and does not allow changes. To unlock the lock, run the command line %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/handlers. The handlers are the node names shown in red in the error message.
If modules are also locked, you can run %windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
In addition, if you use Asp.net, you must remember to check the Asp.net when installing IIS7, and if you don't check it by default, similar error messages will appear |