I wanted to try out publishing an ASP.NET Core 1.0 RC2 application to an IIS web server. I've just created a new project in Visual Studio 2015 u2 with the latest ASP.NET Core tools installed, with no user auth/database, and used the VS publish command. No other changes to the code, just the demo app. The IIS website has an application set up according to thedocumentation. When I open the page in a web browser, I get this error message:
502 - Web server received an invalid response while acting as a gateway or proxy server.
What's the problem? There's no logs directory so I can't investigate this. The server is running Windows 2012 R2 and has the tools installed as described. IIS server has been restarted afterwards.
Update: The application event log has this to say, 10 times each try: Failed to start process with commandline 'dotnet .\AspNetCoreTest.dll', Error Code = '0x80070002'.