I know that similar questions have been asked but their answer are not solving my problem.
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:\mySite\web.config
Requested URL http://localhost:80/mySite/login
Physical Path C:\mySite\login
Logon Method Not yet determined
Logon User Not yet determined
Config Source:
65:
</staticContent>
66:
<handlers>
67:
<add name="ReportViewerWebControlHandler"
> preCondition="integratedMode" verb="*"
> path="Reserved.ReportViewerWebControl.axd"
> type="Microsoft.Reporting.WebForms.HttpHandler,
> Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,
> PublicKeyToken=b03f5f7f11d50a3a" />
I checked in Windows features also and they look alright.
I've tried to set overrideModelDefault
to Allow
and to remove WebServiceHandlerFactory
from applicationhost.congif but no result.
I'm using Visual Studio 2017 and IIS 10.
Any other ideas how to solve this?
Best Answer
I'm using Windows 10
Update:
Make sure .NET Core Windows Server Hosting bundle is installed
Other possible solutions:
Solution 1:
Run these two commands from an elevated command prompt
Solution 2: Using PowerShell
Solution 3: Removing the
<rewrite>
tag inweb.config