Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am trying to create a RDLC report in WPF.

My .NET Framework version is .NET Core 3.1.

Can you help me with this?

While adding data source, I get an error


Error Screenshot

What I have tried:

I have tried to build with x86 but still not able to add data source with object as well as database, also one thing I noticed I am not able to see list of class from same WPF project, so tried with other class library project it is working fine but getting error as below.
Posted
Updated 7-Jan-22 3:04am
Comments
Richard MacCutchan 7-Jan-22 7:41am    
You have a null reference in your code somewhere.
Viken Patel 7-Jan-22 21:25pm    
@Richard can you check error screen shot ?

1 solution

That error means you're trying to call a method or get/set a property on a object that is null, meaning that object doesn't exist.

You haven't shown the code that's throwing the error, so this is about the most you're going to get for an answer. You have to use the debugger and follow your code backwards from the point of the error to find out why the variable you're trying to use is null.
 
Share this answer
 
Comments
Viken Patel 7-Jan-22 21:26pm    
@Dave can you check error screenshot ? it is while i am adding new data source
Dave Kreskowiak 7-Jan-22 21:29pm    
I don't use the designers for data work, ever. I hand-code all database work every single time. This keeps VS from hiding the real work from me and I have much better control over what the code is doing.

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

  Print Answers RSS


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