ASPNetCoreError: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuratin

0

Getting the following error after publishing my Web API:

 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:\inetpub\inspectpointapiv1\web.config

 Requested URL     http://localhost:81/
 Physical Path     
 Logon Method      Not yet determined
 Logon User    Not yet determined
 Config Source:
    -1: 
     0:

The Web.config file looks like this:

<?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="dotnet" arguments=".\InspectPointApi.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</location>
</configuration>

This works on other machines, but this machine seems to be complaining about AspNetCore module. This app works in IIS Express, but when I publish to IIS on the same machine I get the error.

c#
asked on Stack Overflow Nov 3, 2018 by Bob Feller • edited Nov 4, 2018 by Bob Feller

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0