Microsoft KB Archive/928574

= You may receive an error message when you try to create a new Web site project or publish a ClickOnce application in Visual Studio 2005 on a Windows Vista-based computer =

Article ID: 928574

Article Last Modified on 5/9/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Express Edition

-



SYMPTOMS
When you try to create a new Web site project or publish a ClickOnce application in Microsoft Visual Studio 2005 on a Windows Vista-based computer, you may receive one or more of the following error messages:

Error message 1

Error HRESULT E_FAIL has been returned from a call to a COM component

Error message 2

You must be a member of the Administrators group on the local computer to access the IIS metabase. Therefore, you cannot create or open a local IIS Web site. If you have Read, Write, and Modiy permissions for the folder where the files are located, you can create a file system Web site that points to the folder in order to edit the files.



CAUSE
You receive error message 1 because of increased security in Windows Vista. You receive error message 2 because the IIS Metabase and IIS 6 configuration compatibility option is not enabled.



RESOLUTION
To resolve this problem, use one of the following methods, depending on the error message that you receive.

Error message 1
Run Visual Studio 2005 as an administrator. To do this, follow these steps:
 * 1) Click Start, click All Programs, click Microsoft Visual Studio 2005, and then right-click Microsoft Visual Studio 2005.
 * 2) Click Run as administrator.
 * 3) In the User Account Control dialog box, click Continue.

Note You can also create a shortcut to Visual Studio 2005 and select the option to always run with elevated administrator permissions. To do this, follow these steps:
 * 1) Click Start, click All Programs, click Microsoft Visual Studio 2005, and then right-click Microsoft Visual Studio 2005.
 * 2) Click Send To, and then click Desktop (create shortcut).
 * 3) Right-click the shortcut on the desktop, and then click Properties.
 * 4) Click the Compatibility tab, click to select the Run this program as an administrator check box, and then click OK.

Error message 2
Enable the IIS Metabase and IIS 6 configuration compatibility option for Microsoft Internet Information Services (IIS). To do this, follow these steps:
 * 1) Click Start, and then click Control Panel.
 * 2) Click Programs.
 * 3) Click Turn Windows features on or off.
 * 4) In the User Account Control dialog box, click Continue.
 * 5) Expand Internet Information Services, expand Web Management Tools, and then expand IIS 6 Management Compatibility.
 * 6) Click to select the IIS Metabase and IIS 6 configuration compatibility check box, and then click OK.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
By default, IIS is not installed on Windows Vista. By default, when you select Internet Information Services in the Turn Windows features on or off item in Control Panel, the IIS Metabase and IIS 6 configuration compatibility check box is not selected.

