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.
Anteckning
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 https://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 https://localhost prefix in the project name. For more information, see How to: Change Project Names for Applications.
Anteckning
If you set the Template property to ASP.NET Web Application for your ASP.NET application, you must set the Project Location Type property to File System. You must set the Project property to a name, not a URL.
On the application diagram, click the ASP.NET application definition.
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 https://localhost prefix from the project name.
Tips
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 https://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.
On the application diagram, click the ASP.NET application definition.
In the Properties window, perform one of the following:
Set the Project Location Type property to HTTP.
Tips
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 https://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.
Overview of ASP.NET Applications on Application Diagrams