I created an ASP.NET web application MVC Core 2.2 project. Then I ran it in IIS Express. But I received the following error:
HTTP Error 500.24 - Inter
Clearly not the poster's problem, since he wrote he fixed it changing .NET Core version; but I'm posting what worked for me, just in case.
Open IIS and find your default website:
Then you have two alternatives; the first is the quickest.
1. Authentication
Click on the Authentication icon:
Right-click ASP.NET Impersonation and disable it.
2. Configuration editor
Open the configuration editor:
The configuration editor opens; click the drop-down to the top left and pick system.web/identity:
Set impersonate to false:
And you're good to go!
I received the same error as OP. My solution was to add a Web.config file to my ASP.NET Core web app's root folder with this XML content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<identity impersonate="false"/>
</system.web>
</configuration>
Something is wrong with your setup. "windowsAuthentication": true
shouldn't be there. It's set to false
by default, unless you are trying to set and use Windows Authentication. Setting up Windows Authentication requires special steps, including having a web.config
file with forwardWindowsAuthToken="True"
and .UseIISIntegration()
in program.cs file. If you are not trying to do that, just set "windowsAuthentication": false
.