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

ID: Q199965


The information in this article applies to:


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:

    1. 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:
      <SCRIPT LANGUAGE=VBScript RUNAT=Server>
      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
      </SCRIPT>


    2. 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:

      1. Open the MMC and right-click on the virtual directory that contains the store.


      2. Select Properties and click the Virtual Directory tab.


      3. If the Create option is enabled next to the Application Settings section, the application has been unloaded.


      4. If you click the Create button, the store will reload as an application.




    3. 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


    Additional query words:

    
    Keywords          : 
    Version           : winnt:2.0,3.0
    Platform          : winnt 
    Issue type        : kbprb 

    Last Reviewed: February 11, 1999