HTTP Error 500.19 in IIS 10 and Visual Studio 2017

I know similar questions have been asked, but their answer does not solve my problem.

HTTP Error 500.19 - Internal Server Error

The requested page is not available because the associated configuration data for this page is not valid.
Error Details: IIS Web Core Notification BeginRequest Module No handler defined yet Error code 0x80070021 Configuration error This configuration section cannot be used by this path. This happens when a section is locked at the parent level. Blocking is either by default (overrideModeDefault = "Deny") or explicitly set using a location tag using overrideMode = "Deny" or the deprecated allowOverride = "false".

Configuration file \? \ C: \ mySite \ web.config

The requested URL is http: // localhost: 80 / mySite / login

Physical path C: \ mySite \ login

Login method not yet defined

Login user not yet defined

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 also checked the Windows capabilities and they look good.

I have tried installing overrideModelDefault

in Allow

and removing WebServiceHandlerFactory

from applicationhost.congif to no avail.

I am using Visual Studio 2017 and IIS 10.

Any other ideas how to solve this problem?

+8


source to share


7 replies


  1. Press Win Key + R to open the Run window
  2. in the Run window enter "OptionalFeatures.exe"
  3. in the function window, click: "Internet Information Services"
  4. Click: "World Wide Web Services"
  5. Click: "Application Development Features"
  6. Check functions.

I am using Windows 10

Note: “You must be logged in as an administrator to be able to turn Windows features on or off.” If Windows features are blank or blank, then double check to make sure Windows Modules Installer Service is enabled and set to automatic.



Update:

Make sure .NET Core Windows Server Hosting kit is installed

+18


source


This is not a problem in the web.config file.

After installation windows, 
IIS does not know how to support .NET Core 2.0 website (or Core 1.0 also) by default


You must install the .NET Core Windows Server Hosting package on your hosting system.

+8


source


The problem for me was the redirect rule in web.config

.

Solved by removing all <rewrite>

-tag in web.config

:

<system.webServer>
...
...
<rewrite>
      <rules>
        <rule name="http to https" enabled="true" stopProcessing="true">
          <match url="(.*)"/>
          <conditions>
            <add input="{HTTPS}" pattern="^OFF$"/>
          </conditions>
          <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" appendQueryString="true"/>
        </rule>
      </rules>
    </rewrite>
 </system.webServer>

      

+3


source


I faced this problem. For me, by putting a connection string after configSections that contained the entityframework section I solved the problem.

0


source


I had a similar error message when trying to run regular asp.net applications after installing .NET Core Hosting Bundle -> https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnetcore-module ? view = aspnetcore-2.2

Comparing my C: \ Windows \ System32 \ inetsrv \ Config \ applicationHost.config with a colleague's version, we saw that some of the group sections are missing: enter image description here

0


source


In my case (VS 2019) I just changed the port in the project / Web / Project URL property

and I clicked the "Create Virtual Directory" button

to http: // localhost: 40430 / XX

after http: // localhost: 1438 / XX

0


source


I used the wrong frames. I selected .NET 3.5 in my project properties. After changing this to .NET 4, the problem went away..NET 4 is the only platform that can be selected in my version of IIS 10.

0


source







All Articles