I am trying to run a standard ASP.NET Core web application (web application template in VS 2015) through IIS.
I followed the instructions from the docs here , for example, creating the application pool "Without Managed Code" and pointing to the physical path in the location of the web.config .
When I try to go to the root site, http://localhost I get this error:
HTTP Error 502.3 - Bad Gateway A connection error occurred while trying to route the request.
Most likely causes: The CGI application did not return a valid HTTP Error set. The server acting as a proxy server or gateway could not process the request due to an error in the parent gateway.
Event Viewer:
The process could not be started using the command line 'dotnet./bin/Debug/netcoreapp1.0/WebApplication2.dll', error code = '0x80004005'.
This error shows that I replaced the placeholders
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%"
in web.config with the required values
<aspNetCore processPath="dotnet" arguments="./bin/Debug/netcoreapp1.0/WebApplication2.dll"
( update : these placeholders are replaced when published)
Following the troubleshooting instructions, I installed the .NET Core Windows Server Hosting Bundle and restarted the server.
Running from the command line via dotnet works
I wonder what to try now.
asp.net-core .net-core-rc2
wal May 21 '16 at 11:13 2016-05-21 11:13
source share