Getting "Type or namespace name" Objects "does not exist in the namespace" System.Data "(do you miss the assembly reference?)"

I need help - I already searched for the answer to my problem on this forum and many others, but the details do not solve the problem.

I have a solution that builds within the VS2010 IDE, when I build using Team Build / MSBuild, I get the following error:

The type or name of the "Objects" namespace does not exist in the "System.Data" namespace (do you miss the assembly reference?)

While reading other posts in the same error message, I did the following:

  • It is checked that the link is in the project - indicated in the .csproj file, and also indicated in the links in the project located in the solution file.
  • Proven .NET platform is the same (v4.0) for all projects in the solution
  • Added link to System.Data.Entity
  • Validated .NET Framework is NOT listed as a "Client Profile"
  • Checked that System.Data strong> is located on the build server in the C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework.NETFramework \ v4.0 folder

A bit of history - this is the new assembly that I am setting up, this is a C # web application, it has a Silverlight project, as well as a project that shares code with another project. I am not the developer of this web application, but simply Configuration Manager is trying to create this thing.

+4
source share

Source: https://habr.com/ru/post/1438979/


All Articles