0
votes

I am getting error HTTP Error 500.0 - Internal Server Error when I try to run an asp.net core application on my server. To debug this I enabled stdout log files as per this article https://docs.microsoft.com/en-us/aspnet/core/test/troubleshoot-azure-iis?view=aspnetcore-3.0#aspnet-core-module-stdout-log-iis

But it is not writing any log in the logs folder It is empty Why?

1
1) Use failed request tracing to confirm the source of that 500 error. 2) Use a tool like Process Monitor to see if the process cannot create that file in the folder you configured.Lex Li
Could you share the detailed error message snapshot? when you get the 500 error. code sample which causes this error. did you check the iis log for the sub status code?Jalpa Panchal
HTTP Error 500.0 - Internal Server Error The page cannot be displayed because an internal server error has occurred. how to find sub status codePartha Mandayam
@jalpa I cannot share the complete page error because of comments character limitation. Is there a way to upload a screenshot?Partha Mandayam
ye you can upload images in your post.Jalpa Panchal

1 Answers

1
votes

Set stdoutlogEnabled to true and stdoutLogFile to \?\%home%\LogFiles\stdout like below:

If the LogFiles folder is not present Stdoutlog is not written so please create it explicitly.

Set environment variables ASPNETCORE_DETAILEDERRORS = 1 in to see more information around the http 500.0 error and debug it.