You receive an "invalid site name" error message when you browse a Commerce Server 2002 ASP.NET Web site (838464)



The information in this article applies to:

  • Microsoft Commerce Server 2002

SYMPTOMS

In Microsoft Internet Explorer, when you browse a Microsoft Commerce Server 2002 Web site that uses a Microsoft ASP.NET Web application, you may receive the following error message:
Description:Error in Commerce Administration Object:

Description - 'SiteConfigReadOnly:Initialize: Invalid site name: YourSiteName

CAUSE

This issue may occur if the site name of the Commerce Server Web site does not match the site name that appears in the Web.config file.

RESOLUTION

To resolve this issue follow these steps:
  1. Open Commerce Server Manager, and then expand Commerce Server Manager.
  2. Expand Commerce Sites, and then make a note of the name of the site that is generating the error message.
  3. Start Microsoft Windows Explorer, and then locate the Web.config file. By default, the Web.config file is located in the following folder:

    Drive:\Inetpub\wwwroot\YourSiteName

  4. Right-click the Web.config file, point to Open With, and then click Notepad.
  5. Locate the following line:

    <application sitename="YourSiteName">

    To do this, follow these steps:
    1. On the Edit menu, click Find.
    2. In the Find what box, type application sitename, and then click Find Next.
  6. In the line that you located in step 5, replace YourSiteName with the site name that you noted in step 2.
  7. On the File menu, click Save, and then quit Notepad.
  8. Restart Microsoft Internet Information Services (IIS).

REFERENCES

For more information about Microsoft Commerce Server 2002, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:4/12/2004
Keywords:kbprb KB838464 kbAudDeveloper kbAudEndUser