Click here to Skip to main content
15,909,193 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to display data in gridview using linq. I am using Linq first time and getting error "Object reference not set to an instance of an object" plz help.
i have created Tes.dbml and getting error on bellow line

TestDataContext cntxt = new TestDataContext();//error
Posted

1 solution

That isn't Linq: it doesn't use Linq syntax, or Linq methods.

Instead, the problem is likely to be in the constructor for the TextDataContext class - so you need to look at that in the debugger and find out exactly what it is doing.

We can't: we don't have access to your code or any of the data on which it depends.
 
Share this answer
 
Comments
Member 9579525 25-Nov-14 8:01am    
yes....thanks.
OriginalGriff 25-Nov-14 8:32am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900