New Web Site Dialog Box

The New Web Site dialog box enables you to create a new Web site on your local computer or on a remote computer, or to open an FTP-deployed site for editing.

Tasks

How to: Create a Local IIS Web Application

How to: Create File System Web Sites

How to: Create Remote IIS Web Sites

How to: Open Web Sites Using FTP

How to: Create IIS Virtual Directories in Visual Web Developer

Walkthrough: Creating a Basic Web Page in Visual Web Developer

Walkthrough: Creating a Local IIS Web Site in Visual Web Developer

Walkthrough: Editing Web Sites with FTP in Visual Web Developer

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

To open the New Web Site dialog box

  • In Visual Web Developer, on the File menu, click New Web Site (or on the File menu, click New and then click Web Site).

    The New Web Site dialog box dialog box appears.

    Note

    In Visual Studio, how the dialog box is accessed depends on whether you are working under Web Development settings or General settings. For more information see, Visual Studio Settings

UI Elements

  • Templates
    Displays project templates that contain the initial files and folders for the Web application. You can choose from the following two groups of templates:

    • Visual Web Developer installed templates   Web application templates that are installed by default with Visual Web Developer. For more details, see "Default Template Types" later in this topic.

    • My Templates   Templates that you have installed yourself. For more information, see Creating Project and Item Templates.

  • Large Icons
    LargeButtonsButton screenshot

    Displays large icons for items in the Templates pane.

  • Small Icons
    LittleButtonsButton screenshot

    Displays small icons for items in the Templates pane.

  • Location
    Specifies the Web application type that you want to create or open. The location type you select determines the format of the location in the Location Box. Location types include:

    • File System   A Web application in a folder on your local or a remote computer (using a UNC). The files are not associated with an Internet Information Services (IIS) application unless you create an IIS virtual directory to point to them. For details, see How to: Create File System Web Sites.

    • HTTP   An IIS Web application on your local computer or a remote computer. The files are stored under the Web application root (typically, Inetpub/Wwwroot). If you are creating a local application using HTTP, you must have IIS installed on your computer. If you are creating an IIS application on a remote computer, the computer must be configured with FrontPage Server Extensions from Microsoft, and you must have permissions to create folders and files on that computer. For details, see How to: Create a Local IIS Web Site and How to: Create Remote IIS Web Sites.

    • FTP   A Web application to which you can connect using File Transfer Protocol (FTP) credentials. You must have credentials to attach to the FTP server and permissions to read and write to the FTP location.

  • (Location box)
    Enter the location where you want to create or open your application. Choose an existing location from the list, or navigate to a location using Browse. The format of the location depends on what type of Web application you are creating, as shown in the following table.

    Note

    The Location Box has no label.

    Location

    Format of location

    File System

    C:\MyWebSite

    \\OurServer\MyWebApplicatione

    HTTP

    http://remoteserver/MyWebApplication

    https://localhost/MyWebApplication

    FTP

    ftp://ftpserver/MyWebApplication

    Note

    To provide login credentials, click Browse and then click the FTP Site tab.

  • Browse
    Displays the Choose Location Dialog Box dialog box, where you can select a Web application type and navigate to the folder or server where you want to create the site. You can also specify FTP login credentials.

  • Language
    Specifies the default language that you want your Web application files to be written in. You can choose from Visual Basic, Visual C#, and Visual J#.

Default Template Types

Visual Web Developer includes several templates for new Web applications, as listed in the following table.

Template

Description

ASP.NET Web Site

Creates a new Web application that includes the following:

  • A folder to contain the Web application files.

  • A default Web page called Default.aspx.

  • A data folder, which is granted permissions that will allow ASP.NET to read and write to it at run time.

If you are creating a local IIS Web application or a remote IIS site, it creates the IIS Web application.

Silverlight Script Web

Creates a new Web application which uses JavaScript to target Silverlight. For more information about Silverlight, see Silverlight Roadmap.

Note   This template is not available in Visual Web Developer Express.

ASP.NET Web Service

Creates a new Web application that includes the following:

  • A default Web service called Service.asmx, which contains a sample Web method.

  • A code folder where you can keep the source code for Web services and for components called by Web services.

  • A data folder to contain database or other data. The data folder is granted permissions that will allow ASP.NET to read and write to it at run time.

Empty Web Site

Creates a new Web application that contains no files. Visual Web Developer creates a folder for the site, and if you are creating a local IIS Web application or a remote IIS site, it creates the IIS Web application.

WCF Service

Creates a Web application for WCF services that includes the following:

  • A default WCF service called Service/svc, which refers to a code file that contains a sample service method.

  • A code folder where you can keep the source code for WCF services and for components called by WCF services.

  • A data folder to contain database or other data. The data folder is granted permissions that will allow ASP.NET to read and write to it at run time.

ASP.NET Reports Web Site

Creates a new Web application that allows you to produce and display Crystal Reports. For more information, see Crystal Reports for Visual Studio .NET.

Note

This template is not available in Visual Web Developer Express.

Dynamic Data Entities Web Site

Creates a Dynamic Data Web site for use with ADO.NET Entity Framework. This Web site can target any relational database. For more information about Dynamic Data, see ASP.NET Dynamic Data Roadmap.

Dynamic Data Web Site

Creates a Dynamic Data Web site for use with a SQL Server database. For more information about Dynamic Data, see ASP.NET Dynamic Data Roadmap.

See Also

Concepts

Types of Web Sites in Visual Web Developer

File System Web Sites

Local IIS Web Sites

Remote IIS Web Sites

FTP-Deployed Web Sites

Other Resources

Starter Kits

Visual Studio Templates

Change History

Date

History

Reason

April 2009

Added templates.

Customer feedback.