zoukankan      html  css  js  c++  java
  • 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 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.

  • 相关阅读:
    javascript的严格模式:use strict
    Ionic在线打包IOS平台应用
    安装nodejs6.9x以后,原来在nodejs4.2.x中运行正常的ionic项目出现问题的解决
    cordova插件分类
    ionic 启用sass
    ngCordova
    为Asp.net WebApi 添加跨域支持
    使用ionic framework创建一个简单的APP
    研究主题
    近两天让我羞愧难当的遭遇
  • 原文地址:https://www.cnblogs.com/chucklu/p/5301680.html
Copyright © 2011-2022 走看看