cdakz
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't have any experience with DNN, so I have no idea what effect that could have on your problem.
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.
ASKER
I did a quick test previously to see if this would work, and it did (including the availablility of the data context).