0

I have a .net 2.1 core web app that is meant to be working locally in IIS however Im getting a 500.19 error. When I try to access any of the features of the website in IIS I get the error: there was an error while performing this operation. Can someone please help me on how to fix this? Thanks!

Chrome -

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       Unknown
Handler    Not yet determined
Error Code     0x8007000d
Config Error       
Config File    \\?\C:\Development\adtool\trunk\AD Tool\web.config
Requested URL      http://adtool.local:80/
Physical Path      
Logon Method       Not yet determined
Logon User     Not yet determined

web.config -

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="bin\IISSupport\VSIISExeLauncher.exe" arguments="-argFile IISExeLauncherArgs.txt" stdoutLogEnabled="false" />
    </system.webServer>
  </location>
</configuration>
Lex Li
  • 60,503
  • 9
  • 116
  • 147
Bob the Builder
  • 503
  • 1
  • 12
  • 33
  • Is this firs time you are deploying dot.net core app on this IIS? This error code is mostly when the hosting environment doesn't have required core packages installed. – Zeeshan Dec 20 '19 at 12:13
  • Yes its the first time,I have installed .net core module and URLrewrite (not specified in web.config). – Bob the Builder Dec 20 '19 at 12:22
  • install: Microsoft .NET Core - Windows Server Hosting`. Details given in answer below – Zeeshan Dec 20 '19 at 12:30

1 Answers1

1

as discussed above, you need to install .net core packages. For example, I'll share my case, where I configured server for .net core 2.2.3. It should look like:

enter image description here

And set app pool as:

.NET CLR Version - set value to 'No Managed Code'

Managed pipline mode - set value to 'Integrated'

Let me know if you still face issues.

Zeeshan
  • 2,884
  • 3
  • 28
  • 47