Home

Google
 

How to get meaningful ASP error messages for 500 Internal Server Error


By default the Internet Explorer browser version 5.0 and up has the advanced option “Show friendly HTTP error messages” enabled. This typically produces the 500 Internal server error instead of meaningful ASP error. To disable this browser option follow these steps:

  1.  Open IE and navigate to Tools ->  Internet Options -> Advanced Tab
  2. Uncheck the “Show friendly HTTP error messages”option under the heading Browsing

Show Friendly HTTP error messages

If you have access to the IIS server that hosts the relevant page you can verify that the website properties are configured to send detailed error messages to clients.

  1.  Open Internet Services Manager by navigating to Control Panel -> Administrative Tools - > Internet Information Services (IIS) Manager
  2. Then locate your website and right click to get to the properties.
  3.  Go to the home/virtual directory tab  and click on Configuration, go to the Debugging tab, and make sure “Send detailed error messages to the client” is selected.

Send detailed error messages to client

How do I fix IIS 6 Digest Authentication Timeout problem?

When Microsoft developed IIS 6.0 then enhanced the capabilities of the digest authentication to be called advance digest authentication. If you have a advanced digest authenticated web site that is running on IIS6 and you find that after a few minutes user have to re-enter their credentials then the following info may be of use to you:

There are two registry keys that control the time out periods for advanced digest authentication namely:

Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters\DigestPartialContextCacheTTL and Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters\DigestContextCacheTTL

These keys do not exist by default so what IIS is does is use a default value of 300 secs for DigestContextCacheTTL.

Here are the details of both keys:

DigestContextCacheTTL

Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters

Data Type: REG_DWORD

Default Value: 300 (seconds)

Range: 0 - 4,294,967

When using Advanced Digest Authentication, this value overrides the Time To Live (TTL) setting for fully formed security contexts after the first authentication request succeeds.

DigestPartialContextCacheTTL

Registry Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\InetInfo\Parameters

Data Type: REG_DWORD

Default Value: 30 (seconds)

Range: 0 - 4,294,967

When using Advanced Digest Authentication, this value overrides the Time To Live (TTL) setting for partially formed security contexts for the first authentication challenge request.

You will need to configure these keys with values that are suitable to your environment.


powered by FreeFind