Visual Studio 2005
A local Internet Information Services (IIS) Web site is an IIS Web application on your computer. Visual Web Developer communicates with local Web sites by using the HTTP protocol. You can create a new local IIS Web site that uses files in the following ways:
- You can create a new IIS application, which creates a new folder and files under the IIS root.
- You can create a Web site that points to an existing IIS application, and then edit the files in that application.
- You can create a new virtual directory, which creates a new IIS application that points to files that are in a folder other than the IIS root. You can either create a new folder or point to a folder that already contains files.
- IIS version 5.0 or later must be installed on your computer and must be running.
- You must be logged in as a user with administrative privileges. This is required because working with the IIS metabase (where information about IIS applications is stored) requires administrative privileges.
- ASP.NET 2.0 must be enabled on IIS. For details, see the topic Enabling ASP.NET in the IIS documentation at IIS 6.0 Product Documentation.
- The site to be opened must be configured as an IIS application.
- The site must be configured to use ASP.NET 2.0. If it is not, when you open the site, Visual Web Developer will prompt you to reconfigure the site to use ASP.NET 2.0.
To create a local IIS Web site
- In Visual Web Developer, on the File menu click New Web Site.
- Under Visual Studio Installed Templates, select the template for the type of Web site that you want to create.
- To create a Web site directly, do the following:
- In the Location list, click HTTP.
- In the location box, type the URL of the site to create in the following format: http://localhost/SiteName.
- Click OK.
- Click Browse.
- In the Choose Location dialog box, click the Local IIS tab.
- In the tree, open the node for the IIS Web site where you want to create your new Web site. (Typically, this is Default Web Site.)
- To create a new IIS application:
- Select the node that you want as parent of the IIS application.
- Click the Create New Web Application button. Visual Web Developer creates a new folder.
- Type a name for the folder.
- To create a local IIS Web site that uses files from an existing IIS application:
- In the tree, select the node that represents the IIS application you want to work with.
- To create a new virtual directory:
- Click the Create New Virtual Directory button.
- In the New Virtual Directory dialog box, type the alias and then type or select the folder where the files will be located. If the folder does not exist, Visual Web Developer will prompt you to create it.
- Click Open to return to the New Web Site dialog box, and then click OK.
