Linq not compiling after 2005 => 2008 convert

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 [ Mo, 21 April 2008 15:13 ] [ ID #1946596 ]

Re: Linq not compiling after 2005 => 2008 convert

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" <amilhanish [at] hotmail.com> wrote in message
news:uSfb5F7oIHA.3408 [at] TK2MSFTNGP03.phx.gbl...
>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 [ Mo, 21 April 2008 15:20 ] [ ID #1946597 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Linq not compiling after 2005 => 2008 convert

Vorheriges Thema: Returning Nothing from Function
Nächstes Thema: Exception Handling