Where the heck is System.Linq.dll?

4 posts, 0 answers
  1. WombatEd
    WombatEd avatar
    54 posts
    Member since:
    Mar 2010

    Posted 17 Mar 2010 Link to this post

    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?

  2. Petar
    Admin
    Petar avatar
    219 posts

    Posted 17 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. WombatEd
    WombatEd avatar
    54 posts
    Member since:
    Mar 2010

    Posted 17 Mar 2010 Link to this post

    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?
  5. WombatEd
    WombatEd avatar
    54 posts
    Member since:
    Mar 2010

    Posted 17 Mar 2010 Link to this post

    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"

     

Back to Top