Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Report not finding Data Source at run time

$
0
0

This is the first time I've created an rdlc report.  I've got it all laid out, but am having trouble setting up the Data Source.  I need to pull in a set of data from a Service using the ClientProxy.

I've copied the way a similar report was already set up in the application.  That report uses a data source from the same Client Proxy class and works fine.  I have noticed that when I look at the Data Source associated with that report, under the Assembly details it has a PublicKeyToken.  Mine says PublicKeyToken=null.

I set up the new Data Source using the Add New Data Source wizard.  I selected Object and navigated to the right object in the right ClientProxy class.  It seemed to create the Data Source ok, and I was able to select it to assign to my report.  However, as I say, the PublicKeyToken is null, and when I run the report, I get the message "A data source instance has not been supplied for the data source".

I don't think it can be down to the code which is actually calling the report viewer as I've copied that from the way the other report works and don't think I've missed anything.

Can anyone help?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>