Linq not compiling after 2005 => 2008 convert

Discussion in 'ASP .Net' started by Amil Hanish, Apr 21, 2008.

  1. Amil Hanish

    Amil Hanish Guest

    I had a VS 2005 web app (not using Linq yet). I migrated to VS 2008 and the
    app still worked fine.

    Now I want to try out Linq. I modified the web.config to load the Linq DLLs
    and added "using System.Linq". I also modified the properties Build to
    target .NET 3.5. Writing code works fine, but...

    When I compile, no Linq statements are recognized...they all result in
    compile errors. How can I get my migrated web app to recognize Linq
    statements?

    Amil
     
    Amil Hanish, Apr 21, 2008
    #1
    1. Advertising

  2. Amil Hanish

    Amil Hanish Guest

    I figured it out. I created a new VS 2008 asp.net website. Then I looked
    at the web.config. I copied the

    <system.codedom>

    to my migrated VS 2008 asp.net web app. Now it works.

    Amil


    "Amil Hanish" <> wrote in message
    news:...
    >I had a VS 2005 web app (not using Linq yet). I migrated to VS 2008 and
    >the app still worked fine.
    >
    > Now I want to try out Linq. I modified the web.config to load the Linq
    > DLLs and added "using System.Linq". I also modified the properties Build
    > to target .NET 3.5. Writing code works fine, but...
    >
    > When I compile, no Linq statements are recognized...they all result in
    > compile errors. How can I get my migrated web app to recognize Linq
    > statements?
    >
    > Amil
    >
     
    Amil Hanish, Apr 21, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. shapper

    Windows 2008 and SQL 2008

    shapper, Dec 8, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    348
    Mark Fitzpatrick
    Dec 8, 2007
  2. gnewsgroup

    Installed Linq CTP for VS 2005, but

    gnewsgroup, Jan 31, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    355
    Cowboy \(Gregory A. Beamer\)
    Feb 1, 2008
  3. Ilyas
    Replies:
    0
    Views:
    1,566
    Ilyas
    Mar 13, 2008
  4. Mike Gleason jr Couturier

    LINQ to SQL and new MS SQL 2008 datatypes

    Mike Gleason jr Couturier, Oct 28, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    312
    Cowboy \(Gregory A. Beamer\)
    Oct 29, 2008
  5. George

    Linq or not Linq

    George, Nov 4, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    361
    Mike Gleason jr Couturier
    Nov 5, 2008
Loading...

Share This Page