I'm trying to launch my ASP.NET Core application.
I have installed IIS on a Windows Server, and installed the AspNetCore Module relevant, as described here https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1#install-the-net-core-hosting-bundle
How-ever, trying to access the website returns simply a white page, no exception or error pages. I have looked in event viewer as well, nothing.
If i take the source code, and in command prompt run dotnet run
the application does work in the environment, but the output from dotnet publish -o publish
does not work on IIS.
I'm at this point mostly looking at ways to get IIS to actually spit out some error codes. Too difficult to find the needle, when I dont even have the (hay)stack.
Edit: I have tried to make a new "blank" application using the same configuration. This works fine, hence i now believe its my code that's to blame. Yet, it all works fine in visual studio. I really need it to spit out some debugging information, but I don't know how to make it do that.
Information from Fiddlr:
HTTP/1.1 200 OK
Server: Kestrel
Date: Tue, 04 Dec 2018 15:13:22 GMT
Content-Length: 0
Found the bugs.
It was a missing environment variable used in the application throwing an internal exception.
By recommendation of @Tao Zhou, to simply make sure to use the developer exception page, and then fix the bugs.
Thanks all!