Where is ASP.NET server log file is located?

My ASP.NET MVC application on my development box is running wild; I can't even connected to localhost. In order to know what is the problem, I want to find the log file and examine it.

Where is the location of the ASP.NET Server log file? I couldn't find it in event viewer, so I don't know where else to look


ASP.NET uses IIS logging, so it's really an IIS question. Though there is some detailed info in Event Viewer for some types of events.

In IIS6 (and prior), this is located in %SystemRoot%\system32\logfiles, and in IIS7, this is located in %SystemDrive%\inetpub\logs\LogFiles.

In both cases, it will be placed in a subfolder called W3SVC{Id}. The Id is the site Id. You can find it by clicking on "Web Sites" in IIS Manager and the site ID will show in that view.

Click on Sites to see the website ID


I believe this is what you're looking for (link).

FTA:

IIS uses a flexible and efficient logging architecture. When a loggable event, usually an HTTP transaction, occurs, IIS calls the selected logging module, which then writes to one of the logs stored in %SystemRoot%\system32\Logfiles\.

You can alter the location of the ASP.NET Log Files on an application basis within the IIS management console.