System.data.linq namespace not found

Go To StackoverFlow.com

2

I have visual studio 2010 express for windows phone installed on my system and i am not able to find System.data.linq namespace in references so i tried to download the the dll and copy in the C:\Program Files(x86)\ReferenceAssemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone location but it is saying it is a dll not built for windows phone can anyone help to add the correct dll as the reference..? thanks in advance

2012-04-04 06:12
by jsHero
Do you have the latest SDK installed? System.Data.Linq is only available in the 7.1 version - Pedro Lamas 2012-04-04 10:23
Ya recently only i downloaded from microsofts sit - jsHero 2012-04-09 08:51


1

I had same problem. Your project should be minimum windows phone 7.1 version. Look what is written in your csproj file. There should be: <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile> but no <TargetFrameworkProfile>WindowsPhone</TargetFrameworkProfile>

In my sutuation there was written just WindowsPhone and I corrected it to WindowsPhone71 and I got System.Data.Linq and mscorlib.extenstion libraries.

2012-08-20 04:45
by Robert


3

You may have to import the reference manually.

Mine is located here:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0\Profile\WindowsPhone71\system.data.linq.dll

That should fix this.

2012-04-05 04:22
by Runewake2
Thanks for the solution but i cant find the folder Windows phone71 also i installed sdk directly from microsoft sit - jsHero 2012-04-09 08:50
Do you have the mango update? I believe LINQ only became available then. Google leads me here - Runewake2 2012-05-03 03:30
Ads