Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

How to: Choose Web Site Type for ASP.NET Applications 

In Application Designer, you can set your ASP.NET application to run on an ASP.NET Development Server or IIS. You can perform this task by changing the application's project location type or the format of its project name.

NoteNote

Changes to the project location type or the project name properties affect each other. These properties become read-only after you implement the application. Therefore, be sure to configure these properties correctly before implementation. For more information, see Considerations for Implementing Applications.

For example, if you want your ASP.NET application to run on an ASP.NET Development Server, select the File System project location type or omit the http://localhost prefix from the project name. If you want to run your ASP.NET application on IIS, select the HTTP project location type or include the http://localhost prefix in the project name. For more information, see How to: Change Project Names for Applications.

To set an ASP.NET application to run on an ASP.NET Development Server

  1. On the application diagram, click the ASP.NET application definition.

  2. In the Properties window, perform one of the following:

    • Set the Project Location Type property to File System.

      In the Project property, Visual Studio removes the http://localhost prefix from the project name.

      NoteTip

      If you cannot see the Properties window, open it by clicking Properties Window on the View menu or by pressing F4.

    - Or -

    • Set the Project property to the application name or the project name without the http://localhost prefix.

      The Project Location Type property is set to File System.

When you implement the application, Visual Studio will generate an ASP.NET Development Server Web project. For more information, see How to: Implement Applications on Application Diagrams.

To set an ASP.NET application to run on IIS

  1. On the application diagram, click the ASP.NET application definition.

  2. In the Properties window, perform one of the following:

    • Set the Project Location Type property to HTTP.

      NoteTip

      If you cannot see the Properties window, open it by clicking Properties Window on the View menu or by pressing F4.

      The Project property is prefixed with http://localhost. You can change the server name, if needed.

    - Or -

    • In the Project property, enter an IIS Web URL or directory address in the following format: http://localhostServerName/ApplicationDirectoryLocation.

      The Project Location Type property is set to HTTP.

When you implement the application, Visual Studio will generate an IIS Web project. However, you must have certain permissions to implement the application. For more information, see Considerations for Implementing Applications and How to: Implement Applications on Application Diagrams.

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.