msdeploy

MsBuild and MsDeploy with multiple environments

Are there good patterns for mapping solution configurations to environments and using MsDeploy for packaging per environment? Shortest version: Grab this file, and try to change the .msbuild file so that a package is created. Details I have a solution with a large number of libraries and an ASP.NET MVC application. I drive the build...

How do you call msdeploy from powershell when the parameters have spaces?

...

TFS2010 Build Definition to Deploy to multiple servers?

I've been looking into TFS2010 new build and deployment features with MSDeploy. So far everything is going well (although its been hard to find information about specific scenarios). Can I modify my Build Definition to specify 2 or more servers to deploy to? What I need to do is deploy to multiple servers (as I have two in my testing en...

What techniques can you use to build a web deployment package for a vs2008 solution?

My website is built on an ASP.NET, .NET 3.5 framework. For various reasons, I'm not in a position to move my project to vs2010. As a result, I cannot make use of the "Build deployment package" targets that vs2010 supports. Does anyone know of a way to build a web deployment package (the zip archive that can be imported into IIS 7 via ...

Make Web.config transformations working locally

I want to get web.config transformations working locally but apparently the transformations only occur when doing deployments. Does anybody know of a way to run the msbuild target "TransformWebConfig" without it going through the "rebuild" process and also specify and output directory where to spit out the transformed web.config? -Die...

Can MS Deploy do a package and transform, but not deploy?

Using msbuild in .NET 4.0, I can build web project with the "Package" target, and it does a nice job of putting the package in a zip file. But, when I look at the web.config in there, it's not transformed, it has "$(ReplacableToken_Web_SiteConnection-Web.config Connection String_0)" I can run the "TransformWebConfig" target and it will ...

Web deploy and folder permissions

Hi I'm using VS 2010 to build the deployment package for a web application. I manually deploy it to the IIS 6.0 server using the deployment ccommand script it generates. All the stuff gets copied under the Inetpub default website properly. The only issue I have is that the folder permissions keep getting reset once I deploy. Say my web...

How do I use Add-Type to load Microsoft.Web.Deployment

I am writing some PowerShell scripts that use msdeploy api. I can load the assembly using The location is in the GAC PS > [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Deployment") | fl Location Location : C:\Windows\assembly\GAC_MSIL\Microsoft.Web.Deployment\7.1.0.0__31bf3856ad364e35\Microsoft.Web.Deployment.dll ...

How to MSDeploy a built website package to a virgin IIS website

I am trying to automate our build/deployment process. So far I am using: a Visual Studio 2010 solution with a main Web Application project (and dependent projects) MSBuild MSDeploy CruiseControl.Net So after much wrangling and gnashing of teeth, I now have CCNet kicking off an MSBuild script to build, package and deploy the website....

Is Web Deploy a good solution to deploy a huge web application to various platforms with IIS 5/6/7?

I tried making the title as self-explanatory as possible, but let me elaborate. Imagine there' s a huge web application (lots of files, various configuration options), that needs to be installed on different platforms with IIS 5.1 / 6 / 7 / 7.5. Currently it is packaged as MSI package using WiX. I wonder if it makes sense to let WiX in...

Correct way to build and publish asp.net web application (with or without MSBuild)

I'm using VS2008 (just in case it matters), and I have a solution with multiple projects, some are class libraries, and some are build tools, which the main web project is dependent on. Until now I have been publishing with VS right click publish project, and everything builds and deploys correctly. I've tried creating a few simple publ...

msdeploy execute xxx.deploy.cmd with computerName property via command line

I'm working to upgrade our CI system with CruiseControl, MSBuild and MSDeploy. I've created separate build configurations for each stage of our web site, and set up MSBuild to run the following command to build the web package: C:\...\MSBuild.exe C:\...\xxx.csproj /target:Package This gives me the xxx.zip file and the xxx.deploy.cmd ...

TFS Build Deploy

Hi I am using TFS and want do deploy two web applications after build to a test server. After the deployment I want to call a web page at one of the web applications to trigger some work like, delete all data and insert test data. How can I accomplish this? ...

WebDeploy with MSdeploy.exe fails to sync GAC Assembly because dll(s) locked by another process

Hi all, I'm having this problem using msdeploy to sync GAC assembly to many Application Servers. When I run this command msdeploy -verb:sync -source:gacAssembly="'MyAssembly'" -dest:gacAssembly,computername=DESTINATIONSERVER I obtain this error: *Microsoft.Web.Deployment.DeploymentException: (28/09/2010 16.46.37) An error occurred...

MSDeploy dbFullSql provider to create a package works, but fails on deployment

I am currently using MSDeploy to migrate a set of websites from II6 to another machine running IIS7.5. The actual website migration works as expected, but I'm also trying to migrate the associated databases for each website. So far I am able to successfully move a set of our test sites, but I am getting deployment failures (and EXTREMEL...

Null argument error on MSDeploy

I am getting the following error - code “Error: The ‘Connection String’ argument cannot be null or empty.” when running the MSDeploy. When I examined the SetParameters.xml file I noticed the following parameter settings. I am not the one who developed this package anhed am not sure what the arguments should me. ...

dropDestinationDatabase option on Web Deployment Commandline Tool

Ho, I'm trying to get msdeploy commandline tool to copy databases from dev to test. It seems to work except that I want to drop the databases on test and then recreate them -verb:sync -source:dbFullSql="Data Source=DEVSERVER;Initial Catalog=XXX_Application;Integrated Security=true",dropDestinationDatabase=true -dest:dbFullSql="Data So...

What is up with this PowerShell command line quoting/escaping?

I obviously don't know what I'm doing. I have finally got this PowerShell command to work. But I can't figure out why it works. My concern is the final "" chars: &"C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe" ` -verb:sync ` -source:contentPath="$build_directory\deploy" ` -dest:contentPath="$server_temp_dire...

MSDeploy: "Leave extra files on destination" from command line?

I use MSDeploy to publish things to different servers during CI. When I publish from Visual Studio 2010 I have a "Leave extra files on destination" option, but I can't seem to find a flag for this functionality when invoking MSDeploy from the command line. Does anyone know how to do this?? ...

ASP.NET connection string deployment best practice

I've collected a (hopefully useful) summary of the ways I've researched to accomplish the subject of this post, as well as the problems I have with them. Please tell me if you've found other ways you like better, especially if they resolve the problems that the methods I mention do not. Leave connection strings in web.config and use XD...