Microsoft KB Archive/838464

= You receive an &quot;invalid site name&quot; error message when you browse a Commerce Server 2002 ASP.NET Web site =

Article ID: 838464

Article Last Modified on 4/12/2004

-

APPLIES TO


 * Microsoft Commerce Server 2002 Standard Edition

-





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:  Open Commerce Server Manager, and then expand Commerce Server Manager. Expand Commerce Sites, and then make a note of the name of the site that is generating the error message. Start Microsoft Windows Explorer, and then locate the Web.config file. By default, the Web.config file is located in the following folder:



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



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

<div class="references_section">