The isCleanMSDeployPackageNeeded task failed unexpectedly when deploying from TFS Build Server

The isCleanMSDeployPackageNeeded task failed unexpectedly when deploying from TFS Build Server

When deploying a .Net Application to IIS using TFS Build Server and MSBuild, you might get the following error:

C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets (2850): The “IsCleanMSDeployPackageNeeded” task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.Web.Publishing.Tasks.Common.Utility.CheckMSDeploymentVersion()    at Microsoft.Web.Publishing.Tasks.Common.Utility.get_IsMSDeployInstalled()

The isCleanMSDeployPackageNeeded task failed unexpectedly

This can simply be because you have not installed Web Deploy 2.0 on your TFS Server. The Web Deploy is actually the one deploying your ASP.Net application to the remote IIS in the background, and if you don’t have it installed on your TFS Server, it won’t find the binaries and give you this error. You can download Web Deploy here: http://www.microsoft.com/en-ca/download/details.aspx?id=25230

Leave  a comment and don’t forget to like us on Facebook here and to follow me on Google+ here and on Twitter here  for the latest news and technical articles on SharePoint.  Also, don’t forget to check out SharePoint Community.Net for more great SharePoint Content

No ratings yet.

Please rate this

 
Comments

It’s really a cool and helpful piece of info. I am glad that you shared this helpful information with us.
Please stay us informed like this. Thank you for sharing.

Leave a Reply