Create Web Deployment Package

To configure settings on the Connection tab

  1. In the Publish method drop-down list, select Web Deploy Package.

  2. In the Package location box, enter the path to where you want the package to be created, including the .zip file name; for example, c:\temp\<projectname>.zip.
    As an alternative, you can click the ellipsis to open aSelect Package Location dialog box.

    When you select a folder in the Select Package Location dialog box, the package name is set to <projectname>.zip by
    default.

  3. In the Site/application box enter the name of the IIS site and application that you intend to install the package to. This value can be overridden when you install the package.

    If you enter an application name without an IIS web site name, the package is installed in the Default Web Site location (unless you override this value when you install the package).

    If the project that you are deploying is an IIS web project, do not specify the same web site and application name as the project's web site. If you do, some of the project files might be overwritten during deployment.

  4. Click Next.

To configure the Package section of the Settings tab

  1. In the Package section of the Settings tab, choose the build configuration to deploy.

    You normally deploy a Release build. A Debug build is less efficient and less secure and is typically selected only when you are deploying to a test environment and you want to debug in that environment.

    (For the other publish methods there is also a Remove additional files at destination check box on the Settings tab. You specify this option when you install
    the package, not when you create it. Therefore, the check box is absent from this tab when you select Web Deploy Package as the publish method.)

  2. Configure database settings by using the information in the Configuring Databases in the Settings Tab section in How
    to: Deploy a Web Project Using One-Click Publish in Visual Studio
    .

After you configure the Settings tab, click Publish to create the package at the path you specified on the Connection tab.
(The wizard advances to the Preview tab if you click Next on the Settings tab, but previews are not provided
for deployment packages.)

The Output window reports successful package creation.

Install the package

In order to install a package, Web Deploy must be installed on the destination server. In addition, the version of Web Deploy on the destination server must be compatible with the version on the development computer. (By default, Web Deploy is installed on
the development computer when you install Visual Studio.) For information about how to install IIS 7 and Web Deploy by using the Web Platform Installer, seeMicrosoft
Web Platform Installer
 on the Microsoft Web site. For information about how to install IIS 7 and Web Deploy individually, see IIS
7 Installation and Deployment
 and Web Deployment Tool Installation on the Microsoft TechNet Web site.

You can install a package in the following ways:

  • Use IIS Manager.

    IIS 7 must be installed on the destination server, and the package must be created as a .zip file. For more information, see Import
    a Package through IIS Manager
     on the IIS.net Web site.

  • Use the <projectname>.deploy.cmd file that Visual Studio creates with the package.

    This file lets you use a simplified command-line syntax to create the much longer and more complex Web Deploy commands that install the package. For more information, see How
    to: Install a Deployment Package Using the deploy.cmd File Created by Visual Studio
    .

  • Use Web Deploy commands directly from the command line or by executing PowerShell commands.

    For more information about Web Deploy, see Web Deployment
    Tool
     on the TechNet web site and Web Deploy on the IIS.net web site.

How to create Web Deployment Package and install the package的更多相关文章

  1. How to install the Package Controller

    How to install the Package Controller? https://packagecontrol.io/installation INSTALLATION Use one o ...

  2. [转]Ubuntu Precise - Install youtube-dl package using Quantal repo

    Ubuntu Precise - Install youtube-dl package using Quantal repo Ubuntu Precise 12.04 currently contai ...

  3. Curses library not found. Please install appropriate package

    今天安装mysql-5.5.3-m3的时候,报下面的错误: -- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_ ...

  4. Visual Studio® 2010 Web Deployment Projects站点编译生成bin同时发表插件

    VS2010环境下: 1.Visual Studio® 2010 Web Deployment Projects下载地址:        http://www.microsoft.com/downlo ...

  5. installation - How to install Synaptic Package Manager? - Ask Ubuntu

    installation - How to install Synaptic Package Manager? - Ask Ubuntu How to install Synaptic Package ...

  6. Java问题解决:使用maven install 和 package时出错

    今天在idea中使用maven install 和 package时出现以下问题: [WARNING] The POM for org.apache.maven.plugins:maven-compi ...

  7. maven package,clean,install,compile命令

    1.Ideal中显示 2.各个阶段干嘛的? compile,编译命令,会在项目路径下生成一个target目录,在该目录中包含一个classes文件夹,里面全是生成的class文件及字节码文件 pack ...

  8. pip install GitHub package

    /********************************************************************************* * pip install Git ...

  9. CMake Error: Curses library not found. Please install appropriate package

    编译安装MySQL的时候,出现错误: -- Could NOT find Curses (missing:  CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Err ...

随机推荐

  1. thinkphp 动态验证码

    <?php namespace Home\Controller; use Think\Controller; class TestController extends Controller { ...

  2. (转)modelsim10.0C编译ISE14.7的xilinx库(xilinx ip核)

    原地址modelsim10.0C编译ISE14.7的xilinx库(xilinx ip核)   1.打开D:\Xilinx\14.7\ISE_DS\ISE\bin\nt64\compxlibgui.e ...

  3. Android WIFI 分析(二)

    本文介绍Wifi 分析线路二:在Setting中打开WiFi功能.扫描网络以及连接网络的流程. WifiSettings 无线网络设置界面 WifiEnabler 相当于无线网络设置开关 WifiDi ...

  4. WdatePicker日期控件的用法

    前台 <td height="25" width="*" align="left"> <asp:TextBox ID=&q ...

  5. AspNetPager分页控件使用方法

    一.下载AspNetPager.dll 二.AspNetPager.dll复制于应用程序下的bin目录,打开解决方案,引用dll文件 三. 在工具栏中添加控件,这样可以支持拖拽使用 四. 要使用Asp ...

  6. final评论II

    1.  Nice  项目:约跑软件       在此次六个发布作品中,此作品是唯一基于Androrid开发app.并且此作品创意和实用性很高的,跑步是人们日渐热爱的一个活动,用户广泛,并且在网上沟通交 ...

  7. LINUX 命令定期执行可执行文件

    linux命令将nodejs文件变成可执行文件 在linux中一般我们在运行node文件时用的命令为: node example.js 首先.删除文件后缀,在linux命令下添加可执行权限 mv ex ...

  8. phpstudy 出现“请自行检查是否安装VC9运行库??”问题 -- 缺少vc9库

    phpStudy是一款PHP调试环境的程序集成包,该程序包集成最新的Apache+PHP+MySQL+phpMyAdmin+ZendOptimizer,一次性安装,无须配置即可使用,是非常方便.好用的 ...

  9. 期许伟大-基于CMMI的过程改进之道探索

    原文作者:上海科维安信息技术顾问有限公司QAI China 何丹博士 CMMI主任评估师   一.引子     近年来,由美国SEI  (软件工程研究所)开发的SW-CMM  (软件过程能力成熟度模型 ...

  10. 5ucms后台调用标签

    <%=Rs.Data(1,i)%>栏目 <%=Rs.Data(2,i)%>标题 <%=Rs.Data(3,i)%>推荐 <%=Rs.Data(4,i)%> ...