博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
How to: Specify the Web Server for Web Projects in Visual Studio
阅读量:4975 次
发布时间:2019-06-12

本文共 2360 字,大约阅读时间需要 7 分钟。

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

 

Concepts

Other Resources

转载于:https://www.cnblogs.com/chucklu/p/5301680.html

你可能感兴趣的文章
[转帖] sparkdev 的 博客 systemd
查看>>
[cnbeta] 波音系列飞机价格。。。
查看>>
MSTSC 3389 端口修改
查看>>
Java数据类型的位数
查看>>
旁门左道通过JS与纯CSS实现显示隐藏层
查看>>
HDU 4313 Matrix(并查集)
查看>>
HDU 2546 饭卡(0-1背包)
查看>>
HDU 2426 Interesting Housing Problem(二分图最佳匹配)
查看>>
SpringMVC存取Session的两种方法
查看>>
通俗易懂之Tensorflow summary类 & 初识tensorboard
查看>>
python基础篇12-函数
查看>>
获取APP地图权限
查看>>
java反射机制获得类的私有属性
查看>>
[EntLib]微软企业库5.0 学习之路——第一步、基本入门 [转]
查看>>
[ExtJs6] 环境搭建及创建项目
查看>>
<译>Zookeeper官方文档
查看>>
Android sharedUserId 使用
查看>>
伟大架构师的秘密
查看>>
Select_full_join 与 Select_range_check 与Sort_merge_passes
查看>>
win32可以自定义消息
查看>>