Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x80070021
Config Error    This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\SchoolDemo\SchoolDemo\SchoolDemo\web.config
Requested URL   http://localhost:80/Demo/Demo.aspx
Physical Path   C:\SchoolDemo\SchoolDemo\SchoolDemo\Demo.aspx
Logon Method    Not yet determined
Logon User  Not yet determined
Config Source
   49:   <system.webServer>
   50:      <modules runAllManagedModulesForAllRequests="true"/>
   51:   </system.webServer>
Links and More Information
This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.
View more information »
Posted
Updated 22-Feb-14 22:58pm
v2

1 solution

This is a generic error and can happen for various reasons. You should provide the detailed stacktrace.

Try this[^] or this[^]. One of the answers should help.

[Please accept/up-vote answers or solutions that work for you to encourage participation]
 
Share this answer
 
Comments
raxhemanth 23-Feb-14 4:52am    
Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\SchoolDemo\SchoolDemo\SchoolDemo\web.config
Requested URL http://localhost:80/Demo/Demo.aspx
Physical Path C:\SchoolDemo\SchoolDemo\SchoolDemo\Demo.aspx
Logon Method Not yet determined
Logon User Not yet determined
Config Source
49: <system.webserver>
50: <modules runallmanagedmodulesforallrequests="true">
51:
this is the structure of the error
CoderPanda 23-Feb-14 5:15am    
Okay, so the SO threads that I gave you have solutions for this problem .
raxhemanth 25-Feb-14 0:07am    
no
kasheer 26-Apr-16 1:04am    
did ya solved that

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900