Question

I'm using VS C# 2010 Express and I am trying to use the code from this post but I am getting an error on the import:

using System.Data.Services.Client;

I tried to add a reference to it but can't find the item anywhere, assuming that is indeed the problem. Any direction on how I can get this code to compile?

Was it helpful?

Solution

Are you sure that you're targeting framework version 3.5 or later? Both the Full Framework and Client Profile >= 3.5 should present this as an option when attempting to add it as a reference through VS.

OTHER TIPS

I find sometimes Visual Studio plays up a little with this. It is worth going to the Project Pages and setting the .Net Framework to any version and then back to 4.0.

Basically turning it off and on again!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top