Microsoft Web Deploy Là Gì

Feedbaông xã will be sent lớn By pressing the submit button, your feedbaông chồng will be used to improve products & services. Privacy policy.

Bạn đang xem: Microsoft web deploy là gì

In this article

by Harsh Mittal

What is Web Deploy?

Web Deploy is an extensible client-hệ thống tool for syncing content & configuration to IIS. Web Deploy is used primarily in two scenarios:

Developers use it to lớn sync (aka ‘publish") a compiled website applications (ASP .Net, PHPhường etc) from developer tools (Visual Studio, WebMatrix, etc) to IISIT professionals use it khổng lồ migrate websites và applications from an operating system running an older version of IIS such as IIS6 to an operating system running a newer version of IIS such as IIS 7.5.


How does Web Deploy compare khổng lồ FTP?

Web Deploy is often compared khổng lồ technologies like FTPhường, XCOPY or RoboCopy. While these technologies are useful, Web Deploy offers several benefits.

Here is a comparison of Web Deploy to FTP:

Web Deploy is faster than FTP. Web Deploy does not issue a different comm& for each operation. Instead, it does a comparison at the start of the sync và only transfers changes.Web Deploy is secure. Web Deploy supports transfer over HTTPS. chú ý that variants of FTP.. such as SFTP and FTPS are also secure.Web Deploy can phối security descriptors (ACLs) on destination files & directories. For example, you can use Web Deploy lớn give a Windows user specific access khổng lồ your application"s ‘Downloads" folder during deployment.Web Deploy can publish databases. Web Deploy has out-of-box tư vấn for scripting out Squốc lộ Server, MySquốc lộ Server, Sqlite and SQL Server Compact databases và applying the resulting script during the sync. This can be very handy if your phầm mềm needs a database to lớn function.Web Deploy can apply transforms during deployment.

Xem thêm: Góc Chia Sẻ: Cá Thu Nhật Kho Cà Chua, Cách Làm Cá Thu Nhật Kho Cà Đậm Đà, Đưa Cơm

You can use Web Deploy to change a connection string or application setting during a sync. Web Deploy supports a large range of transforms, including transforming IIS settings.Web Deploy integrates with Visual Studio 2010 & WebMatrix.Web Deploy is extensible. Web Deploy has a rich, publicly-accessible extensibility Mã Sản Phẩm which lets you author new scenarquả táo.

How does it work?


Most of the Web Deploy operations are modeled around sync operation between a source và a destination. Sync operation is orchestrated by Web Deploy framework using one or more Web deploy providers as described below.


Web Deploy consists of a framework which manages connection state và orchestrates the sync between source & destination. For example, the framework is responsible for skipping syncing certain types of nội dung, running rules & transforming files.

The framework is accessible via a public API as well as via a command-line executable, msdeploy.exe.


Web Deploy can synchronize any kind of data between two locations through the use of its built-in providers which plug inkhổng lồ the framework. Providers know how to lớn synchronize a particular type of data between two sources, or retrieve sầu useful information about the data source.

For example, Web Deploy has a provider that works with Squốc lộ databases (dbFullSql) that can synchronize an entire Squốc lộ Server database to another hệ thống. Other built-in providers synchronize MySquốc lộ databases (dbMySql), IIS 7 configuration (appHostConfig), GAC assemblies (gacAssembly), or COM objects (comObject32/comObject64). A more complete listing can be found on TechNet.

The provider mã sản phẩm is extensible và lets developers write their own providers for Web Deploy if they need lớn synchronize custom data.

Under the Hood

When a source initiates an action through Web Deploy, the Web Deploy Framework establishes a connection with the destination. Web Deploy supports two connection end-points, and the one you use depends on several factors:


If the destination is Windows Server 2003 running IIS6, you can connect to its Web Deployment Agent Service (also known as the Remote Agent Service) endpoint. The Remote Agent Service provides security for this connection, & is only accessible to lớn administrator users.If the destination is Windows Server 2008 running IIS7 or Windows Server 2008 R2 running IIS7.5 AND you are connecting with non-administrator credentials, you must connect to lớn the Web Management Service endpoint. Web Deploy installs a handler in Web Management Service, which allows non-administrators to lớn deploy after authenticating & authorizing with the Web Management Service.If the destination is Windows Server 2008 running IIS7 or Windows Server 2008 R2 running IIS7.5 AND you are connecting with administrator credentials, you can connect lớn either endpoint.

To Learn More

Please visit our walkthrough tutorials on & our technet documentation.