Linq not compiling after 2005 => 2008 convert

A

Amil Hanish

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
 
A

Amil Hanish

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top