Skip to content

HTTP Error 500.19 in the IIS Express

October 4, 2016

When trying to debug the website from Visual Studio 2015 using IIS Express the following error was reported by the web-server:

2016-10-04_15-47-15

Screen 1

The “Config Error” section says: “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”. 

When this error occurs on the standalone IIS server, the following error codes is logged in the log file: 500 19 33 [xx] where xx can have different values, for example 2761, 15, 6255, 46, 31  etc.

This means that this configuration section is locked in IIS (in this case it was IIS Express). Let’s check and unlock it.

1. Open IIS, select the server node from the Connections window and click Configurations Editor in the Features View

2016-10-04_15-54-36

Screen 2

2. In the IIS configuration editor, in the Section drop down navigate to system.webServer/security/authentication/windowsAuthentication. This was the problematic section that was included in the error message on Screen 1 in Module section.

2016-10-04_15-57-24

Screen 3

3. Click Unlock Section in the Actions menu on the right side.

2016-10-04_16-00-34

Screen 4

This will unlock this section and the changes from web.config of your application will have effect on the website created by the IIS Express.

The alternative way of fixing this issue is to:

1. Open IIS, select the server node from the Connections window and click Feature Delegation in the Features View

2017-01-27_14-42-06

2. Select the feature “Authentication – Windows” and change the Delegation setting to Read\Write instead of Read Only.

2017-01-27_14-46-35

Advertisements

From → IIS

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: