You receive a script error message when you click "Switch to Edit Site" after you restore a Content Management Server 2002 Web application template (901271)



The information in this article applies to:

  • Microsoft Content Management Server 2002 Enterprise Edition
  • Microsoft Content Management Server 2002
  • Microsoft Content Management Server 2002 SP1
  • Microsoft Content Management Server 2002 SP1a

SYMPTOMS

Consider the following scenario. In Microsoft Content Management Server (MCMS) 2002, you restore an MCMS Web application template. When the Web site is running, you receive a script error message that is similar to the following when you click Switch to Edit Site:
Line 88:
Char: 1
Error: Object expected
Code: 0
URL: <http://ServerName/WebApplicationTemplate/Templates/Desktop.aspx>?
Note ServerName is the name of the server, and WebApplicationTemplate is the name of the MCMS Web application template.

CAUSE

This problem occurs because the MCMS Web application template does not have the CMS virtual directory mapped to the physical IIS_CMS folder. By default, the physical folder is located in the following folder:

C:\Program Files\Microsoft Content Management Server\Server\IIS_CMS

The CMS virtual directory is required for the Web Author console.

RESOLUTION

To resolve this problem, add the CMS virtual directory to the MCMS Web application template. To do this, follow these steps:
  1. Click Start, click Programs, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. Right-click your MCMS Web application template, click New, and then click Virtual Directory.
  3. In the Virtual Directory Creation Wizard, click Next.
  4. In the Alias box, type CMS, and then click Next.
  5. In the Path box, click Browse, and then select the following folder:

    C:\Program Files\Microsoft Content Management Server\Server\IIS_CMS

    Note The IIS_CMS folder may be different if you originally installed MCMS in a different folder.
  6. Click Next, click to select the Execute check box, click Next, and then click Finish.

    Note The CMS Web application is created in the Web application template. However, the CMS Web application is not a virtual directory.
  7. To change the CMS Web application to a virtual directory, right-click the CMS virtual directory that you created in step 6, and then click Properties.
  8. Under Application Settings, click Remove, and then click OK.

MORE INFORMATION

For more information about how to build and how to deploy MCMS, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:7/27/2005
Keywords:kbtshoot kbinfo kbprb KB901271 kbAudDeveloper kbAudITPRO