Home > DeveloperSection > Forums > Error code : 0x80070021 and HTTP Error 500.19
Betty Thomas
Betty Thomas

Total Post:5

Points:35
Posted on    October-31-2015 6:07 AM

 IIS 7 IIS 7  IIS 
Ratings:


 1 Reply(s)
 616  View(s)
Rate this:
I have simple webapi build by Visual studio 2013.it work good when i run it from VS13 but when i copy the project in local IIS it give me following error

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:\inetpub\wwwroot\APITeslin\web.config

Config Source:
36:   <system.webServer>  
37:     <handlers>  
38:       <remove name="ExtensionlessUrlHandler-Integrated-4.0" />


Mayank Tripathi
Mayank Tripathi

Total Post:397

Points:3117
Supported
Posted on    October-31-2015 7:23 AM

 This is what worked for me:

Windows Server 2012, IIS 8.5. Should work for other versions too.

1.Go to server manager, click add roles and features
2.In the roles section choose: Web Server
       a. Under Security sub-section choose everything (I excluded digest, IP restrictions and URL authorization as we don't use them)
       b. Under Application Development choose .NET Extensibility 4.5, ASP>NET 4.5, both ISAPI entries
3. In the features section choose: NET 3.5, .NET 4.5, ASP.NET 4.5
4. In the web server section choose: Web Server (all), Management Tools (IIS Management Console and Management Service), Windows Authentication - if you are using any of it

Don't want to miss updates? Please click the below button!

Follow MindStick