How to create Web Deployment Package and install the package
Create Web Deployment Package
To configure settings on the Connection tab
In the Publish method drop-down list, select Web Deploy Package.

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.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.
Click Next.
To configure the Package section of the Settings tab
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.)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的更多相关文章
- How to install the Package Controller
How to install the Package Controller? https://packagecontrol.io/installation INSTALLATION Use one o ...
- [转]Ubuntu Precise - Install youtube-dl package using Quantal repo
Ubuntu Precise - Install youtube-dl package using Quantal repo Ubuntu Precise 12.04 currently contai ...
- Curses library not found. Please install appropriate package
今天安装mysql-5.5.3-m3的时候,报下面的错误: -- Could NOT find OpenSSL (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_ ...
- Visual Studio® 2010 Web Deployment Projects站点编译生成bin同时发表插件
VS2010环境下: 1.Visual Studio® 2010 Web Deployment Projects下载地址: http://www.microsoft.com/downlo ...
- installation - How to install Synaptic Package Manager? - Ask Ubuntu
installation - How to install Synaptic Package Manager? - Ask Ubuntu How to install Synaptic Package ...
- Java问题解决:使用maven install 和 package时出错
今天在idea中使用maven install 和 package时出现以下问题: [WARNING] The POM for org.apache.maven.plugins:maven-compi ...
- maven package,clean,install,compile命令
1.Ideal中显示 2.各个阶段干嘛的? compile,编译命令,会在项目路径下生成一个target目录,在该目录中包含一个classes文件夹,里面全是生成的class文件及字节码文件 pack ...
- pip install GitHub package
/********************************************************************************* * pip install Git ...
- CMake Error: Curses library not found. Please install appropriate package
编译安装MySQL的时候,出现错误: -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) CMake Err ...
随机推荐
- 关于CMFCPropertyGridFontProperty的赋值问题
CMFCPropertyGridFontProperty是派生于CMFCPropertyGridProperty类的用于字体设置的类.它可以设置字体的名称.大小.粗细等各项参数.但是类并不提供用于初始 ...
- MVC Html.ValidationSummary()样式优化
先看效果图 在MVC中常用ValidationSummary显示校验信息,默认样式为 针对Html.ValidationSummary()如何做优化 样式一: 在MVC中,如果你使用验证总结方法任何验 ...
- SQLSERVER进程CPU使用率100%
解决SQLSERVER2008 CPU使用率99%: 1.dbcc checkdb 重建索引 2.檢查有沒有死鎖 -- sp_lock SELECT request_session_id spid , ...
- 使用JS脚本获取url中的参数
第一种方式:使用分隔符及循环查找function getQueryString(name) { // 如果链接没有参数,或者链接中不存在我们要获取的参数,直接返回空 if(location.href. ...
- 什么时候用Model,什么时候用Entity?[转载知乎-备忘]
在建立一个实体类的时候,究竟是用Model还是用Entity?比如MVC中,Model存了数据实体,但是他被称为Model,而在EF中,Entity也是存放数据实体,却被称作Entity,这两者有何区 ...
- (一)startup.bat
那么startup.bat(// TODO startup.sh暂缓)启动后发生了什么呢? @echo off rem Licensed to the Apache Software Foundati ...
- 【转】java项目转web项目
将项目文件.project文件的<natures>...</natures>代码段中加入 <nature>org.eclipse.wst.common.pro ...
- sublime插件 TortioseSVN
TortioseSVN 可以安装在sublime中,实现svn文件的增加.删除.更新.提交等功能(TortioseSVN用在window系统中,linux安装svn) 安装: 首先在sublime中搜 ...
- null 和 NULL 判断
遇到问题,服务器传回 null,我擦嘞,接收不了. 解决如下: NULL 直接 判断就好,能在 xcode 上直接敲出 null 的话 可以 ==[NSNull class] 或者[respons ...
- Markdown: 用写代码的思维写文档
作者:吴香伟 发表于 2014/08/07 版权声明:可以任意转载,转载时务必以超链接形式标明文章原始出处和作者信息以及版权声明 本文不讲解Markdown的语法规则,只关注它带来的好处以及我使用的方 ...