After publishing an ASP.NET Web App, I\'m trying to host the website on my local server. However, when I start it up, it gives me this error in my browser:
You should set the stdoutLogEnabled=true
in the web.config file to see the actual error that is happening. You can direct where these files are written with the stdoutLogFile
argument; the screenshot example below writes to stdoutLogFile=".\logs\stdout"
. (You should ensure the directory exists; the app won't create it)
As for not being able to find the proper config file yes the default environment is production. It is set to development explicitly in visual studio in the project properties.
Update: In AspNetCore RTM the module is called aspnetCore under the system.webServer node in web.config. Also, as @ErikE pointed out in comments, the web.config is now located in the root of the project and not under wwwroot as in previous releases.