DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 255502 - Last Review: February 28, 2014 - Revision: 3.3

This article was previously published under Q255502
This article has been archived. It is offered "as is" and will no longer be updated.

SYMPTOMS

When you run a WebClass (IIS Application) in Visual Basic 6.0 under Windows 2000, the following error message appears in the browser:
Server object, ASP 0178 (0x800A0005) The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
This error only occurs when you run the WebClass from within the Visual Basic integrated development environment (IDE). It does not occur when you run the WebClass in a compiled state.

CAUSE

The authenticating user, usually the IUSR_<computername> account if you use anonymous access, does not have the appropriate permissions to access the DCOM Server (VB6.exe in this case). When you debug WebClasses in the Visual Basic IDE, the "launching user" is the Interactive user and the user who is accessing the DCOM Server is the "authenticating user."

Because there is no DCOM entry for VB6.exe, DCOM uses the default permissions. In Windows 2000, the DCOM default access permissions are only given to the System account and the launching user by default. Because the launching user and the user accessing the DCOM Server are not the same, the error occurs.

WORKAROUND

To work around this problem, add a DCOM entry for VB6.exe into the registry. This will enable you to set specific DCOM permissions for debugging WebClasses in Visual Basic. The instructions for doing this are in the following Microsoft Knowledge Base article:
259725  (http://support.microsoft.com/kb/259725/EN-US/ ) PRB: Error Occurs When You Debug a COM+ Component Under the Visual Basic IDE with an ASP Client

MORE INFORMATION

This behavior does not occur in Windows NT 4.0 and Internet Information Server (IIS) 4.0.

For additional information regarding the ASP 0178 error under Windows NT 4.0, click the article numbers below to view the articles in the Microsoft Knowledge Base:
198432  (http://support.microsoft.com/kb/198432/EN-US/ ) PRB: Server Object Error 'ASP 0178' Instantiating COM Object
192152  (http://support.microsoft.com/kb/192152/EN-US/ ) PRB: Server Object Error 'ASP 0178 : 800a0005' from WebClasses

APPLIES TO
  • the operating system: Microsoft Windows 2000
  • Microsoft Internet Information Services 5.0
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 6.0 Professional Edition
Keywords: 
kbnosurvey kbarchive kberrmsg kbpending kbprb kbwebclasses KB255502
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support