Web App not deploying on build

Category: visual studio msbuild


Roy Owen on Mon, 13 May 2013 18:12:24

Please pardon a newbie's question about MS TFS and Visual Studio 2012, I hope I'm using the correct vocabulary. 

Our shop has recently moved to MS TFS and Visual Studio 2012 to build
internal web services for integration.  Currently we have a TFS 2010
Server running on Server2008R2 and a Build server on a Windows 7 box,
our dev application server is also running Server2008R2.  I have been
given the job of getting a nightly build and deployment running.  I have
the build definition working but the deployment portion is not
functioning.  I have installed Web Deploy on both the dev application
server and the build server.

We have configured an user, web_deploy_dev in active director and that user is a local admin on the dev app server. 

The parameters added to the build definition are:


/p:MSDeployServiceURL="https://PA-APPSRV1-DEV:8172/msdeploy.axd"  /* double quotes not in original code */ 

/p:DeployIISAppPath="DW/DWServices"   /* E:\Webroot\DW\DWServices */






I suspect that MSBUILD is not even calling msdeploy.exe as I see no
errors in the windows event and application logs, but I do not know all
the places to look.  I can use a web browser and connect to the service
on the dev app server as the web_deploy_dev user from the build server, I
receive a web page not found error after inputting user name and PW,
but I assume that is to be expected.

I am at a loss as to where to look next, I've tried searching the web but nothing I try seems to work. 

Thank you in advance for your help and input.



Ego Jiang on Tue, 14 May 2013 07:13:36

Hi Roy,

Let us build the project via MSBuild in your computer. Can it be built well?

If there are some error occur, please post the log here. You can collect the log via msbuild as the way said in the following link:


Best regards,

Roy Owen on Tue, 14 May 2013 11:28:10

The project builds with out error, I can deploy the build manually, it just isn't deploying as a part of the build.  I can attach the build log if you desire.


How do I attach a file to my post?

Roy Owen on Tue, 14 May 2013 12:19:07

I've tried to supply a link to the file in sky drive but I am recieveing the fololowing error:

"Body text cannot contain images or links until we are able to verify your account."

Ego Jiang on Wed, 15 May 2013 09:29:32


Yes, I want to see the log file. Please post the link as a text not a hyper link.

Best regards,

Roy Owen on Wed, 15 May 2013 11:29:22

Link to log file.  The loggin detail is set to daignostic.

Ego Jiang on Thu, 16 May 2013 09:42:12


Did you built via MSBuild command?

From your log, I can't find it run deploying target. Did you add the create target name when you build it?(I just see you setting some properties)

Best regards,

Roy Owen on Thu, 16 May 2013 11:30:54

This was built on the build server by queueing the build from VS2012.  I don't understand what you mean by setting a target name, where would I do that?  What we are trying to accomplish is an automated Nightly Build and then have it automatically deployed to our dev app server.

Ego Jiang on Fri, 17 May 2013 03:10:25

Hi Roy,

I mean that you should try deploy your projects via MSBuild command like:

msbuild <your project name> /t:build /t:deploy /p:...

Can your project deploy well?

Here is a reference you can view:


Best regards,

Roy Owen on Tue, 21 May 2013 11:45:28

Okay I'll try that from both my workstation and the deploy server and post the results.  Sorry, I didn't respond sooner I was out on Friday and Monday got very busy.

Ego Jiang on Wed, 22 May 2013 07:31:09

I am waiting.

Roy Owen on Wed, 22 May 2013 18:57:50

I'm not going to have an oportunity to get to this today, I should have an oportunity tomorrow to give this the attention that it deserves.  Just wanted to let you know that I have not forgotten.

Roy Owen on Thu, 23 May 2013 14:19:02

I have just been informed that we are going to have a new build server installed, this one will be running Server2008R2 instead of Windows 7.  I will be out of the office on Friday and Monday, when I get back in on Tuesday I will install the Web Deploy software on to the new server and see if I can get auto deploy working.  Thank you for all of your assistance so far.

Roy Owen on Mon, 10 Jun 2013 18:01:06

The installation and deployment of the new build server has solved the issue of MSBUILD not calling MSDEPLOY.  I now have a new set of issues that I will take over to the IIS forums.  Thank you for all of your assistance.