Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: Error 80020009 Occurs on the First Visit to a Commerce Server 2000 Web Site


View products that this article applies to.

This article was previously published under Q328282

↑ Back to the top


Symptoms

When you submit the first request to a Commerce Server 2000 Web site application, you receive the following error message:
HTTP 500.100 - Internal Server Error - ASP Error

Error Type:
(0x80080009)
Exception Occurred
/sitename/page.asp, line xx
If the site is running in DEVELOMENT mode, you may also receive the following error message:
Microsoft VBScript Runtime (0x800A01A8)
Object Required: 'Application(...)'

↑ Back to the top


Cause

The '/sitename/page.asp, line xx' may point to the initialization of the Commerce.AppConfig object:
Set mscsAppConfig = Server.CreateObject("Commerce.AppConfig")
Call mscsAppConfig.Initialize("A_SITE_NAME")
In this case, the 0x80020009 error occurs because the A_SITE_NAME string parameter is not correct.

↑ Back to the top


Resolution

To resolve this problem, verify that your site name value is the same as in the /Sitename/Csapp.ini file

↑ Back to the top


Workaround

Do not hard code the site name value. Instead, base your ASP code to retrieve the site name value from the Csapp.ini file. The Csapp.ini file contains the site name value, the virtual directory value, and the address key value. These are written during the unpup of a site. If you do this, and the site is unpupped later under a different name, the code will still be correct.

↑ Back to the top


More information

The Commerce Server 2000 retail site example includes the recommended code to load the site name value and the virtual directory value from the Csapp.ini file.

↑ Back to the top


Keywords: KB328282, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 328282
Revision : 3
Created on : 5/23/2003
Published on : 5/23/2003
Exists online : False
Views : 342