msdeploy

MSDeploy doesn't deploy to remote server using MSBuild and Visual Studio 2010

I'm currently running Visual Studio Team System 2010 RC and I'm trying to get the Build Service setup to build my solution and deploy 3 web applications in it. I've created a custom build configuration called Integration and I've setup the "IIS Web site/application name to use on the destination server" on the Package/Publish tab of the...

MSDeploy publish via FTP

I'd like to use MSDeploy, mainly for packaging and its support for syncing. I'm using MSBuild, along with TeamCity, to automate publishing when I merge to the master branch in git. Unfortunately, it doesn't look like the destination has the IIS (nor the will to install) services. So, my best option is FTP. Does MSDeploy support FTP as ...

MSI wrapper for msdeploy?

Just moved to vs2010 and found that deployment is quite different. The old way I did things (vs2008) was as follows: 1) I right-click on my web app and "Add web deployment project" 2) Start a web setup project, dump that web deployment project output in it, and add any custom installer actions (connection strings or other user input) a...

MSDeploy: error using runCommand provider to call remote .cmd file (timeout)

We are running into an error when trying to use the MSDeploy "runCommand" provider to execute a .cmd file on a remote machine. The expected run time should be about 10 seconds, but MSDeploy only runs it for about 2-3 seconds, after which time error details are returned. Here is the complete MSDeploy "runCommand" command line text I am u...

VS2010, MSDeploy and declaration of parameters

Hi I'm trying to deploy an ASP.NET MVC 2 app using MSDeploy. I use VS2010 to generate the package as a ZIP. Inside that ZIP is a parameters.xml file that declares the parameters that I can set. I want to be able to set more parameters, using the auto-generated deploy.cmd file like this: MySite.deploy.cmd "-setParam:name='IIS Web Appli...

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 reference since they are not COM dlls that can be used with interop. When I build my depl...

Best practices for deploying an MVC application on IIS7

I'm not a web admin, and I'm new to IIS. So, I'm looking for advice. My MVC application (e.g. fooapp) is the default application for my site (e.g. foo.bar). I used IIS Manager to add the site to IIS7. When I import the application, IIS Manager wants to put it in it's own directory (/foo), and tells me I shouldn't put it in the base (sit...

Powershell 2.0 Hang When Run From MsDeploy pre- post- ops using c/

I am trying to invoke powershell during the preSync call in a MSDeploy command, but powershell does not exit the process after it has been called. The command (from command line): "tools/MSDeploy/msdeploy.exe" -verb:sync -preSync:runCommand="powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command C:/MyIns...

No Deploy option IIS

Hey, I've been looking at MSDeploy recently, specifically this presentation here. http://www.hanselman.com/blog/WebDeploymentMadeAwesomeIfYoureUsingXCopyYoureDoingItWrong.aspx Everything has been going fine till now except I'm trying to find the Deploy/Export Applications within IIS and they don't seem to be present. I'm presuming ...

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 ExternalAssembly2. ExternalAssembly1 calls into ExternalAssembly2 When I perform a local build everything is ...

How to use msdeploy and target a specific site?

When using msdeploy and the msdeploy.axd handler any attempts to deploy to my remote server is met with a 401 not authorized error and the server logs IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED Only Windows Administrators are allowed to connect using a server connection. Other users should use the 'Connect To Site or Applic...

VS2010 Web Deploy: how to remove absolute paths and automate setAcl?

The integrated Web Deployment in Visual Studio 2010 is pretty nice. It can create a package ready to be deployed using MSDeploy on a target IIS machine. Problem is, this package will be redistributed to a client that will install it himself using the "Import Application" from IIS when MSDeploy is installed. The default package created a...

migrate from iis6 x64 to iis7 x32 using msdeploy

I'll start this discussion by saying I've been successful when moving iis7 -> iis7. I tried to create a package on the source server. Seems like it should be pretty straightforward... msdeploy -verb:sync -source:metakey=lm/w3svc/29963 -dest:package=c:\site.zip Info: Adding package (package). Info: Adding child metaKey (/lm/w3svc/29963)...

Where can I find up-to-date information / walkthroughs on VS 2010 deployment?

I am looking for information on deploying my web app to our test server. Having heard Hanselman say this is something you can do within VS 2010 easily I set out too find information on exactly how to do this but can not seem to find anything. Ignoring the fact that most of the blog posts / articles are over a year old, there just seems ...

Problems with Database Deployment using VS2010 (Package/Publish SQL tab)

Background: I am using the deployment tools in Visual Studio 2010. I right clicked my project and selected Package/Publish settings. Put all my settings in there ... I am then using "web deploy" to tranfer the files to my remote server running a remote agent service and this is working fine. The transforms i have on my Web.Release.confi...

TFS 2010 - Deploy to Multiple Servers After Build

I've configured TFS 2010 to do a build and utilizing the MSBuild arguments, have it deploying to a single server without any issues. /p:DeployOnBuild=True /p:Configuration=Development /p:DeployTarget=MSDeployPublish /p:MSDeployPublishMethod=RemoteAgent /p:MsDeployServiceUrl=http://&lt;insert&gt;/msdeployagentservice /p:username=<in...

Is it possible to specify -enableLink inside a manifest?

Is it possible at all to use -enableLink when you are packing from a manifest? i.e: <sitemanifest> <appHostConfig path="Default Web Site/some site" /> ... </sitemanifest> I want to include the app pool settings when creating my package, now I can if run the following: msdeploy -verb:sync -source:manifest="manifest.xml" -dest:pac...

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 32bit environment but need to create a release package for a 64bit environment, so in the 'Re...

IisVirtualDirectoryPhysicalPath parameter in TFS build

When I go to the web project's properties, under Package/Publish tab, in Physical Path of web application on the destination server, I have set: C:\Projects\TimeSheet When I create a package and examine the package's zip file and look SetParameters.xml file, I see: <setParameter name="IisVirtualDirectoryPhysicalPath" value="C:\Buil...

Build website deployment package as a postbuild event

I am using visual studio 2010. I have a website project that I would like to build a website deployment package every time I build a the project. Basically I am looking for some example of a post build MSBuild command that will basically do the same thing as the "Build Deployment Package" option from the right click menu of the website. ...