Running Web Applications on Windows Vista with Visual Studio 2005
You can use Visual Studio to create and work with ASP.NET Web sites (which are also known as Web applications) in a variety of configurations: local Internet Information Services (IIS) sites, file-system sites, File Transfer Protocol (FTP)–deployed sites, and remote sites. For guidelines to help you decide when to use each type of Web site, see.
After installing IIS, you can configure Visual Studio to run and debug local ASP.NET Web sites in IIS instead of the built-in ASP.NET Development Server. When you create a local IIS Web site, the pages and folders for your site are stored in a folder under the default IIS folder for Web sites, which is located at LocalDrive:\Inetpub\Wwwroot. Visual Studio also creates the appropriate IIS configuration so that the Web site is recognized by IIS as an application.
To create and work with ASP.NET Web sites without installing IIS, you can create a file-system Web site. For more information about file-system Web sites, see.
Installing IIS and ASP.NET on Windows Vista
Installing the ASP.NET component of IIS 7.0 on the Windows Vista operating system will enable ASP.NET Web applications to run as local IIS Web sites. You must have administrative privileges to install IIS 7.0.
To install IIS and ASP.NET on Windows Vista
In Windows Vista, open Control Panel and then click Programs and Features.
In the right pane, click Turn Windows features on or off.The Windows Features dialog box opens.
Select the Internet Information Services check box.
Double-click (or expand) Web Management Tools, double-click IIS 6 Management Compatibility, and then select the IIS 6 Metabase and IIS 6 Configuration Compatibility check box.
Double-click (or expand) World Wide Web Services, double-click Application Development Features, and then select the ASP.NET check box.
The related options that are necessary for Web application development will automatically be selected.
Click OK to start the IIS and ASP.NET installation process.
Starting the IIS 7.0 Web Server in Windows Vista
IIS 7.0 is included with the Windows Vista operating system. However, when you first install Windows Vista, IIS 7.0 is not installed or turned on by default. Installing IIS 7.0 creates a Web-site server to which clients can connect by using the HTTP or HTTPS protocols. You can also use IIS 7.0 with Visual Studio 2005 to develop and modify ASP.NET Web sites and applications.
To start the IIS 7.0 Web server in Windows Vista
In Windows Vista, click Start, right-click Computer, and then click Manage.
In the Computer Management dialog box, double-click (or expand) Services and Applications.
Double-click (or expand) Internet Information Services (IIS) Manager, double-click the name of your Web server, and then click Web Sites.
Right-click Default Web Site to display a list of options, and then click Start to start your default Web site.
If you need a secure Internet connection, set up Secure Sockets Layer (SSL). For more information, see.
Running Visual Studio with Administrative Privileges in Windows Vista
To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. By default, Windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator.
To run Visual Studio with administrative privileges in Windows Vista
In Windows Vista, click Start, click All Programs, and then locate Visual Studio.
Right-click Microsoft Visual Studio 2005, and then click Run as administrator.