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

  1. 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.

  2. In the Property Pages dialog box, click the Start Options tab.

  3. Under Server, click Use custom server.

  4. 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

  1. In Solution Explorer, right-click the name of the Web application project for which you want to specify a Web server, and then clickProperties.

  2. In the Properties window, click the Web tab.

  3. Under Servers, click Use Visual Studio Development Server or Use Local IIS Web server or Use Custom Web server.

  4. 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.

最新文章

  1. Python验证码6位自动生成器
  2. Codeforces Round #389 (Div. 2, Rated, Based on Technocup 2017 - Elimination Round 3) B
  3. 关于C# Winform DataGridView 设置DefaultCellStyle无效的原因与解决方案
  4. Matlab交集并集的实现
  5. NVDIMM典型应用及技术发展
  6. 在RHEL5.4下安装ORACLE11G
  7. C#按键打开文件选择对话框,并把选择好的路径保存/显示到textBox
  8. MYSQL truncate table
  9. Java基础学习笔记1
  10. 14.10.2 File Space Management 文件空间管理:
  11. 苹果App Store开发者帐户从申请,验证,到发布应用(4)
  12. 记录python接口自动化测试--从excel中读取params参数传入requests请求不生效问题的解决过程(第七目)
  13. Holer实现oracle数据库外网访问
  14. tesseract编译错误:fatal error: allheaders.h: No such file or directory
  15. Java基础编程题——素数
  16. git 基本操作命令
  17. fabric简单案例
  18. Multidimensional Queries(二进制枚举+线段树+Educational Codeforces Round 56 (Rated for Div. 2))
  19. jquery 获取对象
  20. android-关于友盟的自动版本更新(面向小白)

热门文章

  1. h5移动端混编总结
  2. [JSOI2012]玄武密码 题解(AC自动机)
  3. 第四节:EasyUI的一些操作
  4. 【原】Python学习
  5. DH密钥交换算法
  6. UVA - 1623 Enter The Dragon(贪心)
  7. Servlet过滤器的使用
  8. python 读取指定文件信息并拼接
  9. Extract local angle of attack on wind turbine blades
  10. * format-- set command window output display format