Data Access Worldwide Knowledge Base
Article ID 2199 Article Title HOWTO: Redirect error 500-100 to a customized page Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2199 KBase Category WEB APPLICATIONS Date Created 12/21/2005 Last Edit Date 12/21/2005
Article Text
QUESTION:
When VDF Web Application Server is stopped, you get a 500.100 Internal Server Error accessing the pages.
We would like to handle this error and display another page when the error occurs. How can we do that?
ANSWER:
"Internal Server Error" means that "the server encountered an unexpected condition which prevented it from fulfilling the request." It could be an error in the script, it could be a needed dll that was not registered, it could be WAS not running, etc.
In order to have the server display a customized page, you need to configure IIS to show that page when error 500-100 happens. You can set that per application in IIS:
- right-click on the website
- select Properties | Custom Errors tab
- scroll down to HTTP Error 500;100
- Edit its properties setting a URL or file to be displayed when the error occurs
The default page is set to 500-100.asp. You can have something like the code that is suggested at http://www.codingforums.com/showthread.php?t=72147 displayed instead. Just create a page with that code and set that page for error 500;100 at the Custom Errors tab.
Contributed By:
Marcia Booth
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Web Links Related to this Article
CodingForums.com - Usefull 500.100 error page to help with debugging
URL=http://www.codingforums.com/showthread.php?t=72147
W3C - Status Code Definitions
URL=http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.