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.

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.

It is installed as a service within IIS (v6 and above) and allows an SSL connection to be made from an MSDeploy client over HTTPS, typically on port 8172. Clients who have been authorised by the IIS administrator are permitted to carry out a number of actions on the server, including but not limited to:

  • Installing / Updating a .NET application
  • Deploying static content
  • Configuring the IIS server
  • Synchronising the configuration between two IIS servers
  • Setting directory permissions on the server
  • Deploying a database SQL script (MySQL, SQLite and 'Full SQL' supported)
  • Install .NET assemblies in the GAC
  • Manipulate server certificates

Full documentation is available at Technet with the latest version available at Microsoft.

52 questions
2
votes
1 answer

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.exe) it crashes and asks me to view Event Log. Event…
usr-local-ΕΨΗΕΛΩΝ
  • 2,359
  • 7
  • 34
  • 52
2
votes
1 answer

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, the remote agent service allows servers to…
Joe Zack
  • 123
  • 5
2
votes
0 answers

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 same UNC for content. That would allow me to…
2
votes
1 answer

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 our internal and external platforms. I'm…
growse
  • 8,020
  • 13
  • 74
  • 115
2
votes
2 answers

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 IIS installed, but nothing else. I know how to…
John Saunders
  • 425
  • 7
  • 22
2
votes
1 answer

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 so in case of a server fault I can easily restore…
Anders
  • 142
  • 1
  • 8
2
votes
1 answer

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 msdeploy script?
Rob White
  • 463
  • 8
  • 16
1
vote
1 answer

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 MSDeploy and stuff. We want to build a powershell script…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
1
vote
2 answers

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 other machines the same way? I know how to do this…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
1
vote
1 answer

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 server, same code (Literally copied the Visual…
Davy8
  • 143
  • 1
  • 8
1
vote
0 answers

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 that checks, if the service is running and when…
1
vote
1 answer

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 directory. Following error is logged in Event…
Anton Kuryan
  • 193
  • 1
  • 9
1
vote
1 answer

"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:package=c:\test.zip,encryptPassword=password…
JustAGuy
  • 639
  • 3
  • 23
  • 38
1
vote
0 answers

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' below the services. 5. Added an application…
1
vote
4 answers

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 works fine. msdeploy -verb:sync…
JustEngland
  • 273
  • 3
  • 8