Enable Raw Exception Logging in ASP.NET

I get this error:

Server application unavailable The web application you are trying to get on this web server is currently unavailable. Click the Refresh button in your web browser to repeat the request.

Admin Note An error message indicating the reason for this particular request failure can be found in the web server application event log. Check this log entry to see what caused this error.

However, there are no errors in the application event logs. So, I am wondering if there is a specific parameter in IIS or for a virtual site that allows logging?

Changing customerror settings in the web.config file does not seem to have an effect. I don’t think it even came to pass.

IIS 6, Windows Server 2003

+4
source share
3 answers

Open the IIS metabase ...% SystemRoot% \ system32 \ inetserv \ MetaBase.xml

Verify the IIS metabase that AspErrorsToNTLog is NOT FALSE. If so, change the value to TRUE and save.

http://msdn.microsoft.com/en-us/library/ms524984(v=vs.90).aspx

To enable editing metadata functionality using IIS Manager

  • In IIS Manager, right-click the local computer and select Properties.
  • Check the box next to "Enable direct metabase change" and click "OK."

To change the IIS metabase

  • Open the Metabase.xml file in a text editor. The default path for this file is systemroot \ system32 \ inetserv \ metabase.xml
  • Change the metabase properties that you want to change in the Metabase.xml file.
  • Save the changes to the file and close the text editor.
+1
source

I believe, but could be mistaken, that it is stored in the IIS log. You can find the path to your IIS log by opening the IIS management interface, going to yoru website / website properties, go to the "Website" tab, and then at the bottom of the screen click the "Properties" button next to the format expansion active log down. At the bottom of the Advanced Logging Settings window, you will see the path to the log file, as well as the folder name and naming convention used for log files.

Mine is located in the C: \ WINDOWS \ System32 \ LogFiles \ folder in the W3SVC1 folder, but on XP it may be different on a Windows server.

+1
source

Try to go to the site in IIS, right-click the default page and select view. If the page opens, you may access it through the wrong URL. If this is not the case, then you should start browsing the logs.

-1
source

All Articles