How to: Specify the Web Server for Web Projects in Visual Studio
https://msdn.microsoft.com/en-us/library/ms178108(v=vs.120).aspx
When you run a Web project in Visual Studio, project options determine which Web server Visual Studio uses to run (test) the site.
By default, Visual Studio runs file system Web site projects and Web application projects by using the Visual Studio Development Server.
However, you might want to run a project by using an Internet Information Services (IIS) virtual directory that points to the folder where the project files are located.
For FTP Web site projects, Visual Studio prompts you to specify a server URL the first time that you run the site. You can change the server URL at any time.
You cannot specify that the ASP.NET Development Web server run a local or remote IIS Web site project because Visual Studio always uses the URL where the IIS Web site project was created.
Note |
---|
The Visual Studio Development Server option applies only when you are running (testing) the Web project in Visual Studio. Production Web applications always run under IIS. |
To specify the Web server for a Web site project
In Solution Explorer, right-click the name of the Web site project for which you want to specify a Web server, and then click Property Pages.
In the Property Pages dialog box, click the Start Options tab.
Under Server, click Use custom server.
In the Base URL box, type the URL that Visual Studio should start when running the current project.
Note If you specify the URL of a remote server (for example, an IIS Web application on another computer), be sure that the remote server is running at least the .NET Framework version 2.0.
To specify the Web server for a Web application project
In Solution Explorer, right-click the name of the Web application project for which you want to specify a Web server, and then clickProperties.
In the Properties window, click the Web tab.
Under Servers, click Use Visual Studio Development Server or Use Local IIS Web server or Use Custom Web server.
If you clicked Local IIS Web server or Use Custom Web Server, in the Base URL box, type the URL that Visual Studio should start when running the current project.
Note If you clicked Use Custom Web Server and specify the URL of a remote server (for example, an IIS Web application on another computer), be sure that the remote server is running at least the .NET Framework version 2.0.
最新文章
- Python验证码6位自动生成器
- Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 - Elimination Round 3) B
- 关于C# Winform DataGridView 设置DefaultCellStyle无效的原因与解决方案
- Matlab交集并集的实现
- NVDIMM典型应用及技术发展
- 在RHEL5.4下安装ORACLE11G
- C#按键打开文件选择对话框,并把选择好的路径保存/显示到textBox
- MYSQL truncate table
- Java基础学习笔记1
- 14.10.2 File Space Management 文件空间管理:
- 苹果App Store开发者帐户从申请,验证,到发布应用(4)
- 记录python接口自动化测试--从excel中读取params参数传入requests请求不生效问题的解决过程(第七目)
- Holer实现oracle数据库外网访问
- tesseract编译错误:fatal error: allheaders.h: No such file or directory
- Java基础编程题——素数
- git 基本操作命令
- fabric简单案例
- Multidimensional Queries(二进制枚举+线段树+Educational Codeforces Round 56 (Rated for Div. 2))
- jquery 获取对象
- android-关于友盟的自动版本更新(面向小白)