Microsoft KB Archive/328282

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

Article ID: 328282

Article Last Modified on 5/23/2003

-

APPLIES TO


 * Microsoft Commerce Server 2000 Service Pack 1
 * Microsoft Commerce Server 2000 Service Pack 2

-



This article was previously published under Q328282



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

/ / .asp, line

If the site is running in DEVELOMENT mode, you may also receive the following error message:

Microsoft VBScript Runtime (0x800A01A8)

Object Required: 'Application(...)'



CAUSE
The '/ / .asp, line ' may point to the initialization of the Commerce.AppConfig object:

Set mscsAppConfig = Server.CreateObject(&quot;Commerce.AppConfig&quot;)

Call mscsAppConfig.Initialize(&quot;A_SITE_NAME&quot;)

In this case, the 0x80020009 error occurs because the A_SITE_NAME string parameter is not correct.



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



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.



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.

Additional query words: kbCommServ2000 0x80020009 initialize csapp.ini 0x800A01A8

Keywords: kberrmsg kbprb KB328282

-

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

© Microsoft Corporation. All rights reserved.