I am using a web application project in visual web developer express 2010 on Windows 7 x64 targeting .net 4.0. I've linq to sql quite a bit with visual studio 2008 and it worked with no issues. I added a dbml file to the root of my web site and dragged over my data model. When I run my project, I get the following error:
Type 'DataClasses1DataContext' is not defined. The line of code it is having a problem on is
Dim db As DataClasses1DataContext = New DataClasses1DataContext()
However, intellisense is recognizing dataclasses1datacontext as a valid class. If I view the code on the dbml file, it has essentially an empty class definition. It appears it didn't actually generate any code relating to my data model. I tried adding system.data.linq, etc to my web.config file but it didn't make a difference. I always get the error above. Again, I'm using a web application project which appears to function a little differnetly than a web site project.
Any ideas why I can't get this basic functionality that was working in 2008 to work in 2010?
View Complete Post