Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
When I am trying to add dataset in rdlc report of my existing project then then shows this error.
in details of that error msg
Object reference not set to an instance of an object.

I am using Entity Frame work structure in asp.net with C#
Posted
Updated 6-Mar-17 18:46pm
v4
Comments
Nelek 1-Sep-14 5:23am    
What have you tried?[^]
A bit of the code involved generating the error would be nice.
best way to post code snippets[^]
belgie 12-Jan-16 12:54pm    
I have the same problem. It is not as perfectly clear as the earlier responder thinks. All I have to do is click 'New --> Dataset' in the report designer and the 'Undocumented Error' popup is displayed. In the details, it says 'Could not load file or assembly ' and then it names one of the referenced projects in the solution.

This happens at design time, not run time. There is no code involved.

My workaround is to design (or modify) my reports in a separate project with no references to other projects in the solution, and then copy the report to the intended project.
[no name] 1-Sep-14 5:42am    
What do you mean "undocumented"? The error is perfectly clear. You are trying to use an object that is null. Debug your code, find the object that is null, fix your code so that the object is not null.
thatraja 2-Sep-14 4:05am    
:thumbsup:
ZurdoDev 2-Sep-14 8:07am    
:)

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