PRB: ASP Page Returns Error 0194 "An Error Occurred in the OnEndPage Method of an External Object" (259516)
The information in this article applies to:
- Microsoft COM+ 1.0
- Microsoft COM+ 1.5
- Microsoft Internet Information Services 5.0
This article was previously published under Q259516 SYMPTOMS
When you browse to a Microsoft Active Server Pages (ASP) page, you may receive the following error message:
Active Server Pages, ASP 0194 (0x80004005)
An error occurred in the OnEndPage method of an external object
The same Web page functions correctly on Internet Information Server (IIS) 4.0.
CAUSE
This problem occurs if the Web page creates an instance of a Component Object Model (COM) object, which in turn uses the CreateObject method of the intrinsic Server variable to create an instance of another COM component.
For this problem to occur, the COM object must be running in a separate process from the InetInfo.exe (IIS) process. For example, this problem occurs if the COM object is configured in a COM+ server application.
RESOLUTION
To resolve this problem, do not use the IIS intrinsic Server variable to create COM components in Microsoft Visual Basic. Use CreateObject instead.
STATUSThis behavior is by design.MORE INFORMATION
The OnPageStart and OnPageEnd methods are obsolete in IIS 5.0. Use IObjectControl instead.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
243548 INFO: Design Guidelines for VB Components Under ASP
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbpending kbprb KB259516 |
---|
|