PRB: ASP 800a005b Object Variable or With Block Variable Not Set
This article was previously published under Q243772 On This PageSYMPTOMS
When calling a Component Object Model (COM) component that uses the ObjectContext function from an Active Server Pages (ASP) page, the following error may occur:
ObjectCtxtProject error '800a005b' Object variable or With block variable not set xxx.asp, line xx CAUSE
In order to obtain the ObjectContext function, the component needs to be running inside a Microsoft Transaction Server (MTS) package.
RESOLUTION
You must register your component within a MTS package. For additional information on how to do this, click the article number below
to view the article in the Microsoft Knowledge Base:
223406 (http://support.microsoft.com/kb/223406/EN-US/) HOWTO: Create an Empty MTS Package to Add Components for ASP
You must use Server.CreateObject in the ASP code in Internet Information Server 4.0 (IIS4) to access the ASP intrinsics. In IIS5 you can either use Server.CreateObject or CreateObject. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESFor additional informations, click the article number below
to view the article in the Microsoft Knowledge Base:
223406 (http://support.microsoft.com/kb/223406/EN-US/) HOWTO: Create an Empty MTS Package to Add Components for ASP
238274 (http://support.microsoft.com/kb/238274/EN-US/) HOWTO: Obtain ObjectContext with ObjectControl Inside VB COM DLL from ASP and MTS
200260 (http://support.microsoft.com/kb/200260/EN-US/) PRB: Permission Denied Error When Attempting to Recompile an ASP DLL
APPLIES TO
| Article Translations
| ||||||||||||||||||||||||||||||||||||

Back to the top
