Microsoft KB Archive/199965

= Err Msg: Active Server Pages Error '8002802b' Create Object Failed =

Article ID: 199965

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Commerce Server 2.0
 * Microsoft Site Server 3.0 Commerce Edition

-



This article was previously published under Q199965



SYMPTOMS
When a browser connects to a Commerce Server store, the following errors may occur:

Active Server Pages error '8002802b' Create object failed ?

An error occurred while creating object 'MSCSSite'. error '8002802b' Element not found. /teststore/i_shop.asp, line 30

Microsoft VBScript runtime error '800a01a8' Object required: 'MSCSSite' /i_shop.asp, line 30



CAUSE
When the error occurs, the site is in an inoperable state. This may be due to the following:

The Global.asa file has been renamed.The Global.asa file has been modified and does not properly create the MSCSSite variable in application_onstart.



WORKAROUND
To troubleshoot this problem, do the following:  Verify that there is a Global.asa and that it is firing. This can be done by inserting the following subroutine into the Global.asa file:



SUB Session_OnStart

Set fs = Server.CreateObject("Scripting.FileSystemObject")

'filepath = server.mappath("TestFile.txt")

Set a = fs.OpenTextFile("c:\testlogfile.txt",8, True)

a.WriteLine("*************************")

a.WriteLine("Written on Session_OnStart")

a.WriteLine("*************************")

a.WriteLine("Time:"Now)

a.WriteLine("Session ID: " & Session.SessionID)

a.close

END SUB



 Verify that the store is set up as an application on the Virtual Directory tab in the Microsoft Management Console (MMC). To check this, do the following:

 Open the MMC and right-click on the virtual directory that contains the store. Select Properties and click the Virtual Directory tab. If the Create option is enabled next to the Application Settings section, the application has been unloaded.</li> If you click the Create button, the store will reload as an application.</li></ol> </li> Verify that the following two lines exist in the Global.asa file for the store:

Set MSCSSite = Server.CreateObject("Commerce.Dictionary")

Set Application("MSCSSite") = MSCSSite

</li></ol>

Keywords: kbprb KB199965

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.