Questions tagged [msdeploy]

Microsoft command line tool for deploying, synchronizing and packaging web applications, content and configuration settings to IIS Web Servers.

1102 questions
220
votes
11 answers

How to Publish Web with msbuild?

Visual Studio 2010 has a Publish command that allows you to publish your Web Application Project to a file system location. I'd like to do this on my TeamCity build server, so I need to do it with the solution runner or msbuild. I tried using the…
jrummell
  • 41,300
  • 17
  • 110
  • 165
129
votes
12 answers

Getting a 404 from WMSvc via MSDeploy.exe

From Windows 8 to Windows Server 2012 (IIS 8) with Web Management Services installed and working, I can use IIS Manager on W8 box to manage the remote server but I get a 404.7 from WMSvc when I execute the following command: msdeploy.exe" -verb:dump…
Luke Puplett
  • 36,042
  • 37
  • 161
  • 231
127
votes
7 answers

How do you include additional files using VS2010 web deployment packages?

I am testing out using the new web packaging functionality in visual studio 2010 and came across a situation where I use a pre-build event to copy required .dll's into my bin folder that my app relies on for API calls. They cannot be included as a…
Jason
  • 2,621
  • 2
  • 22
  • 33
103
votes
4 answers

MsDeploy is returning 403 forbidden

We had a Web Application working on an intranet and I'm trying to publish it to the internet using Visual Studio 2010. The destination server is running iis7 and the Web Management Service is running. On Visual Studio 2010 my service URL…
dcarneiro
  • 6,720
  • 10
  • 46
  • 73
91
votes
6 answers

How to get Visual Studio 'Publish' functionality to include files from post build event?

I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration. I develop in a…
brodie
  • 5,214
  • 4
  • 30
  • 28
84
votes
5 answers

Using MSBuild.exe to "Publish" a ASP.NET MVC 4 project with the cmd line

I'm looking for a command to run against the MSBuild.exe that just takes a MVC 4 project and publishes it to a given directory. For example, MSBuild /.csproj -publish -output=c:/folder This is obviously incorrect syntax. I'm…
Erik5388
  • 2,011
  • 2
  • 19
  • 28
78
votes
8 answers

How can I get TFS2010 to run MSDEPLOY for me through MSBUILD?

There is an excellent PDC talk available here from Vishal Joshi which describes the new MSDEPLOY features in Visual Studio 2010 - as well as how to deploy an application within TFS. (There's also a great talk from Scott Hanselman but he doesn't go…
Simon_Weaver
  • 120,240
  • 73
  • 577
  • 618
74
votes
7 answers

MSBuild target package not found

I want to package my VS2010 web application project ready for deployment with msdeploy. On development machine I can do this using: MSBuild.exe "C:\path\to\WebApp.csproj" /target:package But on my build server I get this error: error MSB4057: The…
Andrew Davey
  • 5,305
  • 3
  • 40
  • 57
74
votes
32 answers

Web deployment task failed. Could not connect...server did not respond

I've been publishing my Lightswitch app using Visual Studio 2012 RC to my localhost (Win 7, SQL 2008 R2, IIS 7.5) just fine. Now I'm trying to publish to a remote server (Win 2008 R2, SQL 2008 R2, IIS 7.5) and I'm having trouble. When I try to…
embedded.kyle
  • 9,676
  • 5
  • 34
  • 55
62
votes
8 answers

WebDeploy - Not able to log on the user '.\WDeployConfigWriter'

I have problem with MsDeploy to publish my website to remote IIS from Visual Studio. I encountered the following error: Microsoft.Web.Delegation.DeploymentAuthorizationException: Not able to log on the user '.\WDeployConfigWriter'. ---> …
Iswanto San
  • 17,245
  • 11
  • 56
  • 77
60
votes
6 answers

Valid Parameters for MSDeploy via MSBuild

I'm trying to deploy a web application using MSDeploy, on Team Build in TFS. There are several questions that address the properties that have to be passed in MSBuild in order to call MSDeploy, but I haven't found sufficient documentation for what…
merthsoft
  • 868
  • 1
  • 7
  • 10
57
votes
7 answers

Make MSDeploy (Visual Studio) not delete App_Data folder but delete everything else

I'm using Visual Studio's Publish button to deploy my website, and want a different App_Data folder on the server. There's a checkbox for Leave extra files on destination (do not delete) which prevents my App_Data folder from getting deleted, but…
Rei Miyasaka
  • 6,796
  • 5
  • 37
  • 65
53
votes
13 answers

Visual Studio 2010 Publish Web feature not including all DLLs

I have an ASP.NET MVC 2 application. Web project contains a reference to SomeProject SomeProject contains references to ExternalAssembly1 and ExternalAssembly2. SomeProject explicitly calls into ExternalAssembly1, but NOT…
45
votes
6 answers

VS2010 Web Publish command line version of File System deploy

Folks, In a nutshell, I want to replicate this dialog: It's a Visual Studio 2010 ASP.Net MVC project. If I execute this command, I get all the files I want, including the transformed web.configs in the "C:\ToDeploy" directory. I want to replicate…
43
votes
3 answers

How to use MsBuild MsDeployPublish to target local file system?

I'm trying to replicate the Visual Studio 2010 "Publish..." command (applicable to Web Application projects) where I would in the UI choose Publish Method: "File System". My attempt at this is... %msbuild% /t:MsDeployPublish…
DuckMaestro
  • 13,332
  • 9
  • 61
  • 83
1
2 3
73 74