SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try to run a build through the TFS 2010 build service, I get errors stating that assemblies mentioned in the title can't be found, or rather, it breaks on a using statement for the LongRunningOperationJob in the publishing assembly:

using Microsoft.Office.Server.UserProfiles;


using Microsoft.SharePoint.Publishing.Internal;

Also, underneath the errors there is the following warning:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (1360): The primary reference "Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v3.5". To resolve this problem, either remove the reference "Microsoft.SharePoint.Publishing, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Web.DataVisualization, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35".

The project targets the .Net Framework 3.5 and has the platform target set to "Any CPU". I am using WSPBuilder, the mentioned Assemblies have the copy local flag set to false in the project.

I followed the steps mentioned here:

share|improve this question
up vote 1 down vote accepted

Had similar issue, and if I recall correctly it was solved by installing ASP.NET and Windows Forms Chart Controls for .NET Framework 3.5 SP1.

share|improve this answer
Yes! that got me further, but now anything related to the SharePoint Client OM starts throwing errors. Will look at the mentioned article again. – Colin Jul 4 '11 at 20:08
The dll it was looking for was related to my custom WCF services and the automatic WCF proxy provided by MS.SharePoint.CLient.ServerRuntime.dll – Colin Jul 4 '11 at 20:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.