This is a migrated thread and some comments may be shown as answers.

Silverlight: 'Value cannot be null' when using parameters.

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clint Singer
Top achievements
Rank 1
Clint Singer asked on 28 Apr 2010, 08:41 PM
Hi,

I have started using the Telerik Reports and am a bit stumped.  In case it matters, I am using the 3.2.9.1211 version of the Silverlight Report Viewer and the 4.0.10.423 version of the engine on the server.

I made a report that didn't use any parameters which successfully loaded in the Silverlight Report Viewer.  I then modified the report to accept report parameters for a start time and end time.  They are bound to the equivalent parameters in a sql query. 

When I run the version with parameters the report viewer finishes with the following message:

Error: Value cannot be null.
Parameter name: typeName


I have checked in the ItemBinding event and the sender appears to have the correct data from the silverlight client.  I have tried using string and DateTime data types, in the parameter definition and also sent by the silverlight client.

Though one oddity.  I noticed in the report definition defines its type at ReportParameterType.DateTime whereas silverlight sends a System.DateTime.  Would that be a cause for problems?

Cheers,
Clint

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 04 May 2010, 09:29 AM
Hi Clint Singer,

Each version's viewer is build against the respective report engine's version, so our recommendation would be to use the same versions of the engine and the viewer.
 

Greetings,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Clint Singer
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or