Questions tagged [msdeploy]

MSDeploy is a tool developed by Microsoft, also known as 'Web Deploy'. It allows the simple deployment and configuration of applications being deployed to IIS.

Filter by
Sorted by
Tagged with
1 vote
2 answers
4k views

How to restart the IIS application pool remotely via command line and MSDeploy

I am creating GitHub actions to automatically deploy my website. I have everything working other than the ability to remotely restart the application pool. From what I've read, I need to stop the ...
  • 150
1 vote
0 answers
601 views

Web management service not start on reboot

Server 2012R2 with management service. Whe reboot the server, the service not start automatically. If i start it manually, it start successfull. There are these events on event viewer: Service ...
  • 11
0 votes
0 answers
77 views

Having trouble deploying tfs artifact to iis server with msdeploy

I'm building my projects artifact on a team foundation devops server. And in the release definition I want to deploy the artifact with msdeploy, but I'm getting "ERROR_USER_ANAUTHORIZED". I build ...
  • 1
0 votes
1 answer
3k views

ERROR: The version of the .NET Framework Configuration Provider (machineConfig64) are different on the source (2.0) and destination (4.0)

First I'll start by saying that this question is similar to this question: Cannot use msdeploy to sync 2 websites - ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH. Actually my use case is different... but ...
  • 121
1 vote
1 answer
239 views

How to read and save IIS configuration? (Win Server 2012 R2)

We have a set of IIS servers that were configured by hand. We lost track over the years of what we changed to machine config, etc. We now need to re deploy on Server 2016. We want to avoid the ...
2 votes
1 answer
2k views

How to avoid msdeploy error ERROR_EXCEEDED_MAX_SITE_CONNECTIONS

I am using msdeploy combined with TeamCity to deploy multiple websites to a test server. I will intermittently get an error when backing up the old deployed site. The error output is: Error Code: ...
1 vote
2 answers
621 views

How to see what IIS config elements are changed from default?

On Windows Server 2012, 2012-R2 and 2016 (e.g. IIS v8.0 and up) We have an IIS setup, that has evolved over the years. How do I extract its "delta to default IIS" so we can make a script to set up ...
1 vote
1 answer
638 views

TFS 2015 Unable to deploy to to specific server, but Visual Studio can from the Build Agent server

I'm at a bit of a loss here, having checked all the usual suspects. One of the most baffling things is that I can deploy via Visual Studio on the Build Agent server, using the same url to the same ...
  • 143
0 votes
1 answer
1k views

How to update machineConfig64 .Net Framework-configuration provider

I'm trying to synchronize an IIS Site from an old Windows Server 2008 R2 with IIS7.5 to a new Windows Server 2012 R2 with IIS8.5. I'm doing that with the WDeploySnapin3.0 PowerShell Snapin now I got ...
  • 767
0 votes
1 answer
6k views

MSDeploy with Jenkins

So I'm setting up a Jenkins job that will build and deploy an application that I have. Building it is easy, but I'm having issues deploying it. Here is my build command: "C:\Windows\Microsoft.NET\...
  • 791
1 vote
0 answers
259 views

Windows service control commands for non administrator user

we have two environments, staging and production, both running a windows service. we use a build server to deploy a certain windows service via MSDeploy part of the build steps is running a CMD script ...
1 vote
1 answer
961 views

Msdeploy fails from time to time, stating that it is unable to delete directory

We have an MsDeploy enabled-delivery and, normally, it is working flawlessly on number of servers. But, on 3 Windows 2012 R2 servers it fails from time to time saying that it is enable to delete ...
5 votes
1 answer
4k views

msdeploy via jenkins & service account: connected but "could not authorize"?

Background / Goal The moving parts: I have a service account, let's call it MyDomain\svcMyService. I have a remote server, let's call it MyDomain\MyServer. I have a Jenkins server, let's call it ...
  • 1,083
7 votes
2 answers
6k views

msi for Web Deploy 3.6 for Hosting Servers... where to find?

On Win2012-R2 The Web Platform Installer offers an option (that I need...): "Web Deploy 3.6 for Hosting Servers" I would like to get this into my dsc script, but cannot find the discrete msi(s) on ...
0 votes
1 answer
258 views

Web deploy fails on Azure Pack Websites v2 rollup 7

I have setup an Azure Pack Website cloud, and almost everything is working (creating websites, publishing by git, tenant etc...). Except Web Deploy and creating an application from the marketplace. I ...
1 vote
1 answer
876 views

"CustomFields" error when using MSDEPLOY to export\import Website between servers

Source: Server 2012 R2 Destination: Server 2012 This is the command I use to export: C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy -verb:sync -source:apphos tconfig="mywebsite" -dest:...
  • 639
0 votes
0 answers
303 views

Website deployment to China

I'm trying to deploy a website to Azure China. I just downloaded the publish profile from my Azure China account and use Visual Studio to deploy via Web Deploy using the profile, stock standard. It ...
  • 101
2 votes
1 answer
2k views

Msdeploy, can sync but not delete

I'm trying to setup automatic deployment using msbuild. I succeeded having a msdeploy sync call to successfully publish a zip package created with msbuild. However when I try to perform a msdeploy ...
  • 131
3 votes
1 answer
4k views

MS Webdeploy V3 encryptPassword correct usage

I have installed MS Webdeploy (Version 3.5) on both my ("old") Server 2003/IIS6 and ("new") Server 2012/IIS8. Currently, I am following the guidelines in the article here, backing up the Target ...
  • 131
2 votes
1 answer
3k views

Unable to start IIS Web Deploy agent for missing SSL certificate

I just found that my instance of Web Deploy agent stopped working and won't restart because of a missing SSL certificate. When I try to start service IIS Manager (C:\Windows\system32\inetsrv\wmsvc....
4 votes
1 answer
2k views

Moving one website from one server to another using powershell

I've been reading about MS Deploy and writing a small script to export/import one website from one server to another server(IIS8 to IIS8). But I ran into sizing problems and some other errors and the ...
0 votes
2 answers
795 views

IIS 8 - Application Initialization and Deployment of website without downtime

I have set up App Initialization on for a large website, however there is still quite a long wait before the website is initialized before users can access it. The site in question is quote big and ...
  • 221
1 vote
0 answers
509 views

Creating a manual backup. Are applications and virtual directories supported?

Let's say I have created the following in IIS: 1. A website called 'MyMusicBlog'. 2. Added an application 'Umbraco'. 3. Added a virtual directory called 'services'. 4. Added an application 'RssService'...
17 votes
5 answers
21k views

Could not connect to remote computer web deploy ERROR_DESTINATION_NOT_REACHABLE

I am trying to configure Web Deploy 3.5 on Windows Server 2008 R2 Standard with SP1 installed on it. When I try to validate connection using Visual Studio 2013 to publish a website it throws the ...
  • 291
0 votes
1 answer
818 views

Web deploy (msdeploy), syncing everything but sites and pools (but include siteDefaults)

Today I do the following to sync two webservers but skip all site configuration: msdeploy -verb:sync -source:webServer -dest:webServer,computerName=web25:8080 -skip:objectName=section,...
  • 858
3 votes
2 answers
3k views

Why can't I deploy with Web Deploy 3.5?

I'm attempting to use Web Deploy 3.5 in a test environment. It fails with a 404, even though Web Deploy 3.5 is installed on the test server and the Web Management Service is started. I have even ...
  • 189
2 votes
1 answer
524 views

MsDepSvc.exe send files/sensitive information over port 80?

I'm reading up on WebDeploy, but I'm a bit confused about the differences between the service that runs on port 80 (Remote Agent Service) and port 8172 (IIS Deployment handler?). As far as I can tell,...
  • 123
1 vote
4 answers
9k views

Cannot use msdeploy to sync 2 websites - ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH

I am trying to use the msdeploy v3.0 to sync an iis website. The site is using .net 4.5 and I am having trouble syncing a brand new server. Step 1) Create a backup of the website. It looks like it ...
1 vote
2 answers
2k views

msdeploy syncing issues

I have 4 Windows 2008 R2 servers. 3 are IIS 7.5 web servers and 1 is a sql server / shared file server. I configured the first web server exactly as I wanted it, then used this msdeploy command to ...
2 votes
0 answers
2k views

Unauthorized Access Exception using Web Deploy to Site when the site root is a UNC path

I am trying to use Web Deploy to deploy a site where the Site is rooted on a UNC path instead of a local drive. This is because I want to have a shared configuration, and have all servers point to the ...
0 votes
1 answer
640 views

Setting write permissions for folders while creating a package with MSDeploy

I'm using MSDeploy to create an artefact as a build step in NAnt. This particular build step is called on successful compilation. The artefact is then used to for deployment. Here is the step ...
  • 101
1 vote
1 answer
509 views

Using MSDeploy to set ACLs on the system temp directory

I'm trying to grant read and write permissions to the system Temp location to the IIS_IUSRS group. There is a system variable declared %TEMP%; but unfortunately there is also a user variable by the ...
3 votes
1 answer
2k views

How can I speed up MSDeploy?

MSDeploy is excruciatingly slow. As in, it has taken our build /deployment process from 3.8 minutes to 15. Is there anyway to speed this up? The publish method we are using is WMSVC.
  • 3,772
2 votes
1 answer
425 views

MSDeploy - possible to call setAcl on multiple destinations in one go?

I'm building a nice little continuous integration environment for our development team, based on TeamCity. It's working rather nicely, as it can build a mix of .NET and PHP projects, and push them to ...
  • 7,840
1 vote
4 answers
7k views

Web Deploy to IIS7 fails with 401 (Unauthorized)

We have IIS7 running on Windows Web Server 2008 R2. It's set up to support Web Deploy. It worked fine when we used the default Administrator account. We recently disabled this account (for security ...
  • 11
2 votes
2 answers
8k views

How Do I Migrate a Single Application from IIS6 to IIS7?

I have a number of applications currently running on a Windows Server 2003 system. We'd like to migrate one of those applications to IIS7 on a Windows Server 2008 R2 box. This is a new web server, has ...
2 votes
1 answer
4k views

Backup of All websites with MSDeploy

I am trying to make a command line argument that will backup all my websites to a file which I can then move periodically to offsite backup location. I would need all the content and all the settings ...
  • 143
5 votes
1 answer
1k views

IIS Configuration Management... Alternatives to MSDeploy and Web Farm Framework?

In my experience both IIS Web Farm Framework and MSDeploy is doing a really poor job of managing configurations between servers. While the idea behind the Web Farm Framework and MSDeploy is awesome, ...
  • 369
4 votes
2 answers
3k views

Does MSDEPLOY Produce a Log of its Actions for Audit Purposes?

We just had a situation where someone performed a deployment into the wrong system at the wrong time, yet nobody knows who did it, or when. I looked in the Windows Event Logs on the target web server,...
13 votes
2 answers
4k views

Can the msdeploy agent service open up an attack vector on our servers?

we're evaluating the usage of the msdeploy Web Deployment Agent Service for automatic deployments to our production servers. One thing we can't find out about are potential security impacts. For one ...
0 votes
1 answer
991 views

Migrating IIS 6 webserver to new IIS 6 server in 1 command?

In the midst of migrating one my IIS 6 web servers with 30 or so applications on it, to new hardware. Coming from a linux background, I'm very surprised as to how difficult this seems to be. Having ...
  • 161
0 votes
1 answer
2k views

Is it possible to create a remote backup of a site with MSDeploy?

I'm currently using the package dest to create a backup of a site as follows: msdeploy.exe -source:appHostConfig="Default Web Site",computerName="https://server:8172/MSDeploy.axd?site=Default Web ...
  • 115
2 votes
1 answer
695 views

MSDeploy Removing IIS Url Rewrite

I've noticed that when I deploy my application via msdeploy all of the url re-writes (IIS 7.5) are removed. How can I prevent this from happending or how can I build the url re-write into part of the ...
  • 463
1 vote
2 answers
2k views

Allow domain user to publish website with mswebdeploy on IIS 7.5

I'm trying to configure an IIS 7.5 server to allow remote deployment by a domain user account. I can achieve this if I create either a local account with Administrator privileges, or use a domain ...
  • 7,840
3 votes
3 answers
6k views

MSDeploy fails with "an existing connection was forcibly closed by the remote host"

The following MSDeploy string supplied to the command line results in an error. Can anyone shed any light on this? "C:\Program Files\IIS\Microsoft Web Deploy\\msdeploy.exe" -source:package='D:\dev\...
  • 434
3 votes
2 answers
4k views

Microsoft Web Deployment Service Silent Install

I am trying to script the installation of the web deployment service (WebDeploy_x64_en-US). There is a quiet flag (/quiet), however it does not install the remote management service by default. I did ...
  • 243
0 votes
1 answer
584 views

msdeploy not copying files starting with a dot

Some of the files for the website I'm moving start with a dot, IE .htaccess or .hiddenFolder or anything similar to that. I'm trying to move these sites from IIS6 to IIS7 (there's hundreds of ...
  • 217
0 votes
1 answer
529 views

msdeploy.exe is erasing FTP permissions on a site it's been told to ignore

I'm using msdeploy.exe to duplicate our live web environment to an offsite disaster-recovery server. This offsite server also hosts an FTP site that we use for transferring database backups and logs. ...
1 vote
0 answers
108 views

Consolidate 2 IIS6 webservers into one IIS7 webserver

I'm trying to consolidate 2 webservers with different sites within into a single new IIS7 web server. I thought I would be able to do it using msdeploy tool. It doesn't seem to allow multiple sources....
0 votes
1 answer
359 views

copy web site confiuration from IIS6 to IIS7 on a remote server

Hellp I have to copy all web sites on a windows 2003 box ( IIS 6 ) to a windows 2008 ( IIS7.5). there are about 1000 sites. I copy all data and content manually but what can I do for IIS configuration ...
  • 400