Link to home
Start Free TrialLog in
Avatar of cdakz
cdakzFlag for United States of America

asked on

DataContext from dbml not shown in LinqDataSource connection

Using Visual Studio 2010 & ASP.NET 3.5 w/ SQL Server 2008.

I've created a Test.dbml with local tables in it, and then created an aspx page

I then added a LinqDataSource control to it. When I try to configure LinqDataSource's "Configure Data Source" wizard however, and click the "Show only DataContext objects" checkbox, the "Choose your context object" listbox is EMPTY!

Any idea on why the data context from the DBML isn't showing up?

Note: In the code behind (using VB.NET here), I did following as a test, and the datacontext is found (i.e. is valid)
Dim dc As New TestDataContext
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cdakz

ASKER

These are some web pages that I'm adding into a DotNetNuke website. I didn't open them as a Web Application project, as they don't really need to be included in DNN's builds. So I'm adding them as plain old simple Website files (i.e. no build involved).

I did a quick test previously to see if this would work, and it did (including the availablility of the data context).
I don't have any experience with DNN, so I have no idea what effect that could have on your problem.
Avatar of cdakz

ASKER

I created a new local installation of this website and then opened in VS 2010, and this time it saw the Data Context. So I suspect that the previous suggeston about rebuilding the solution might have worked.