This is a migrated thread and some comments may be shown as answers.

Where the heck is System.Linq.dll?

3 Answers 619 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
WombatEd
Top achievements
Rank 1
WombatEd asked on 17 Mar 2010, 06:14 AM

I've recently upgraded from VWD 2008 Express to Visual Studio 2008 Professional edition, and installed Telerik's RadControls.

Now, when I create a new Telerik project, I get the following errors:

  • Namespace or type specified in the project-level Imports 'System.Xml.Linq' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
  • Namespace or type specified in the project-level Imports 'System.Linq' doesn't contain any public member [etc...]

The Web.config file contains the following:

    <compilation debug="false" strict="false" explicit="true">  
        <assemblies> 
            <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>  
            [etc...]  
        </assemblies> 
    </compilation> 
    <pages> 
        <namespaces> 
            <clear /> 
            [etc...]  
            <add namespace="System.Linq" /> 
            <add namespace="System.Xml.Linq" /> 
            [etc...]  
        </namespaces> 
        <controls> 
            [etc...]  
        </controls> 
    </pages> 
 
 

I can fix one error if I right-click on my references folder, select "Add Reference...", select the ".NET" tab, and find System.Xml.Linq, but System.Linq isn't there, or anywhere else that I can see.

Does anybody see what I'm doing wrong?

3 Answers, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 17 Mar 2010, 08:21 AM
Hi WombatEd,

Can you make sure that your project targets .NET Framework 3.5?

If this is not the problem I think that probably something went wrong with the upgrade from Visual Web Developer Express to Visual Studio Professional. Can you try reinstalling .NET Framework 3.5 SP1?

Hope this will help.

Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
WombatEd
Top achievements
Rank 1
answered on 17 Mar 2010, 02:00 PM
I selected .Net 3.5 as the target framework when I created the project, so that shouldn't be the problem.

OTOH, I notice in the project's Properties page that nearly all the references listed are version "2.0.0.0".  Is that as it should be?
0
WombatEd
Top achievements
Rank 1
answered on 17 Mar 2010, 02:02 PM

I found the missing namespace; I posted the same question on the Asp.Net forums, and got this reply:

"Try adding System.Core.dll

System.Linq namespace lives in a dll by the name of System.Core.dll"

 

Tags
Installer and VS Extensions
Asked by
WombatEd
Top achievements
Rank 1
Answers by
Petar
Telerik team
WombatEd
Top achievements
Rank 1
Share this question
or