The isCleanMSDeployPackageNeeded task failed unexpectedly when deploying from TFS Build Server

1 Comment

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:

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

Previous Post
Win an Achievement Unlocked T-shirt by doing MVA classes [Canada Only]
Next Post
TFS Permissions do not sync to Web Access and no more emails are sent

1 Comment

  • January 10, 2016 at 7:02 pm

    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

15 49.0138 8.38624 1 0 4000 1 300 1