PRB: Application-defined or Object-defined Error (800a9c68) in a WebClass Application
This article was previously published under Q271764 On This PageSYMPTOMS
When you view a compiled WebClass (Internet Information Server application) in a Web browser, you may receive the following error message:
projectname error '800a9c68' Application-defined or object-defined error /projectname/pagename.ASP, line 13 CAUSE
This problem is caused by an error in the WebClass code that is not handled by any error handlers in the WebClass. When you run the WebClass in debug mode in the Visual Basic Integrated Development Environment (IDE), the IDE traps the error and displays it in a message box. After you dismiss the message box, the debugger stops at the line of code that generates the error. However, when you compile and browse the WebClass outside of the Visual Basic IDE, the WebClassRuntime traps the error and logs it in the Application log in the Event Viewer, along with a second event that indicates the "Application-defined or object-defined" error. RESOLUTION
To resolve this problem, you can read the application log and extract the error message. To do this on Microsoft Windows NT 4.0, perform the following steps:
The WebClass runtime trapped the following error:
The second log is a warning from the VBRuntime and contains the actual error message:
Source: WebClass1 Thread ID: 1256 Description: Application-defined or object-defined error
The VB Application identified by the event source logged this Application NOTE: Microsoft Windows 2000 does not report the actual error in the event log. To find the actual error message, you must create your own error handling in your WebClass procedures. This is also recommended for WebClasses on Windows NT so that you can produce custom error messages for your customers instead of the generic "Application-defined or object-defined error." In addition, to make sure that you catch all errors, you should implement an error handler in all of your WebClass methods.Project1: ThreadID: 354, Logged: MsgBox: ,Run-Time error '11': Division by zero To implement error handling in WebClasses, use the following sample code:
The App.LogEvent method creates an event log in the application log of the Web server. The source is the name of your WebClass.
MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
189539 (http://support.microsoft.com/kb/189539/EN-US/) INFO: VB 6.0 Readme Part 8: WebClass Designer Issues
269797 (http://support.microsoft.com/kb/269797/EN-US/) HOWTO: Create Error Handlers in Visual Basic COM Components
APPLIES TO
| Article Translations
|

Back to the top
