Page

9.2.3- ASP Errors

Created by Brendan Doss.
Last Updated by Jim Minatel.  

PublicCategorized as 09. Error Handling.

Not yet tagged
<< 9.2.2- Logical ErrorsChapter99.3.0- Good Coding Practice >>

ASP Errors

Sometimes the operating system itself goes down. If you've used Windows 98/NT you'll be familiar with the "blue screen of death", where Windows itself generates an error and usually has to shut down. Sometimes these errors are caused by the user or programmer, and sometimes by bugs in the operating system. We explained in an earlier chapter that ASP was a DLL (Dynamic Link Library), and DLLs aren't immune to failure. If the ASP DLL fails it returns with an error code. Here's a list of them.

 

ASP Error Code

Error Message

Extra Information where applicable

0100

Out of Memory

 

0101

Unexpected Error

 

0102

Expected string name

 

0103

Expecting numeric input

 

0104

Operation not allowed

 

0105

Index out of range

 

0106

Type Mismatch

 

0107

Stack Overflow

 

0115

Unexpected Error

Trappable error occurred in external object. Script has to stop running.

0177

Server.CreateObject Failed

 

0190

Unexpected Error

Trappable error occurred in external object.

0191

Unexpected Error

Trappable error occurred in OnEndPage method of external object

0192

Unexpected Error

Trappable error occurred in OnStartPage method of external object

0193

OnStartPage Failed

Error occurred in OnStartPage method of external object

0194

OnEndPage Failed

Error occurred in OnEndPage method of external object

0240

Script Engine Exception

 

0241

CreateObject Exception

 

0242

Query OnStartPage Interface Exception

 

These errors are displayed on the user's own browser, as they are sent back in lieu of the expected page content. They can be recognized as ASP errors since 'ASP' always prefixes the error code, for example ASP 0100. Typically, ASP errors arise when there is a problem either with your web server or an external component. A failure to install a component correctly, or a problem with the component code, is a very common cause behind ASP errors. You should definitely suspect a problem of this nature if you experience either ASP 0115 or ASP 0177 errors. As for preventing them – well if it's somebody else's code that is broken then, unfortunately, there's not much you can do about them.

<< 9.2.2- Logical ErrorsChapter99.3.0- Good Coding Practice >>

Copyright © 2003 by Wiley Publishing, Inc.

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |