Microsoft KB Archive/936857

= You receive an error message when you try to create a Visual Studio 2005 ASP.NET project on a Windows Vista-based computer =

Article ID: 936857

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft .NET Framework 2.0
 * Microsoft Internet Information Services 7.0

-





SYMPTOMS
When you try to create an ASP.NET project in Microsoft Visual Studio 2005 on a Microsoft Windows Vista-based computer, you receive an error message that resembles one of the following:

Error message 1

Unable to open the Web 'http://localhost/ '. The Web server does not appear to have the FrontPage server extensions installed.

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 Modify 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.

This problem occurs if both Internet Information Services (IIS) 7.0 and Visual Studio 2005 are installed.



CAUSE
This problem occurs because Visual Studio 2005 cannot access IIS.



RESOLUTION
To resolve this problem, follow these steps:  Install the IIS metabase and the IIS 6.0 configuration compatibility feature. To do this, follow these steps:  Click Start, type control panel in the Start Search box, and then click Control Panel in the Programs list. Click Programs, and then click Turn Windows features on or off. Expand Internet Information Services, expand Web Management Tools, and then expand IIS 6 Management Compatibility. Click to select the IIS Metabase and IIS 6 configuration compatibility check box, and then click OK. </li> Run Visual Studio 2005 as an administrator. To run Visual Studio 2005 as an administrator, click Start, click Microsoft Visual Studio 2005, right-click Microsoft Visual Studio 2005, and then click Run as administrator.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
You receive an error message that resembles the following when you type a URL in the Location box in the Web Site dialog box:

Unable to open the Web 'http://localhost/ '. The Web server does not appear to have the FrontPage server extensions installed.

Because Visual Studio 2005 cannot access the IIS metabase directly, Visual Studio 2005 tries to use the FrontPage Server Extensions to access the IIS metabase.

You receive an error message that resembles the following when you click Browse and then you click Local IIS in the Choose Location dialog box:

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 Modify 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.

In this instance, Visual Studio 2005 cannot access the IIS metabase directly. However, Visual Studio 2005 does not try to use the FrontPage Server Extensions to access the IIS metabase. Therefore, the error message does not include a reference to the FrontPage Server Extensions.

Enable debugging on the IIS Web site
To enable debugging on the IIS Web site, follow these steps:  Install the Windows Authentication feature. To do this, follow these steps:  Click Start, type control panel in the Start Search box, and then click Control Panel in the Programs list.</li> Click Programs, and then click Turn Windows features on or off.</li> Expand Internet Information Services, expand World Wide Web Services, and then expand Security.</li> Click to select the Windows Authentication check box, and then click OK.</li></ol> </li> Enable Windows Authentication in IIS. To do this, follow these steps:  Click Start, type IIS in the Start Search box, and then click IIS Manager in the Programs list.</li> Expand the computer name that you want, expand Web Sites, click to select the Web site that you want, and then double-click Authentication.</li> Right-click Windows Authentication, and then click Enable.</li></ol> </li></ol>

Steps to reproduce the problem

 * 1) On a Windows Vista-based computer, install IIS 7.0 with the default options.
 * 2) Install Visual Studio 2005.
 * 3) In Visual Studio 2005, click File, click New, and then click Web Site.
 * 4) Type http://localhost/test in the Location box, and then click OK.

Keywords: kberrmsg kbtshoot kbprb KB936857

-

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

© Microsoft Corporation. All rights reserved.