LINQ doesn't exist?


A

Andy B

I had an asp.net web application that was converted from .net 2.0 to .net
3.5. When I added a web content form to the project, added some html content
and then went to preview it from visual studio 2008 solution explorer I got
the following error: Error 1 The type or namespace name 'Linq' does not
exist in the namespace 'System.Xml' (are you missing an assembly reference?
I am not missing a reference that I know of. Under the references node of
solution explorer project, there is the reference: System.Xml. What am I
missing?
 
Ad

Advertisements

J

Jon Skeet [C# MVP]

I had an asp.net web application that was converted from .net 2.0 to .net
3.5. When I added a web content form to the project, added some html content
and then went to preview it from visual studio 2008 solution explorer I got
the following error: Error 1 The type or namespace name 'Linq' does not
exist in the namespace 'System.Xml' (are you missing an assembly reference?
I am not missing a reference that I know of. Under the references node of
solution explorer project, there is the reference: System.Xml. What am I
missing?

You need a reference to the LINQ XML assembly. I can't remember
offhand what it's called, but I'd look for System.Xml.Linq as a
possible reference. Alternatively, create a new .NET 3.5 project and
see what *that* references to look for likely candidates.

Jon
 
Ad

Advertisements

A

Andy B

Tnx... got it fixed now


Jon Skeet said:
You need a reference to the LINQ XML assembly. I can't remember
offhand what it's called, but I'd look for System.Xml.Linq as a
possible reference. Alternatively, create a new .NET 3.5 project and
see what *that* references to look for likely candidates.

Jon
 

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

Top