ApplyRenderedReport NullRefrerence Exception

Stimulsoft Reports.Silverlight discussion
Locked
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

ApplyRenderedReport NullRefrerence Exception

Post by nodo »

Hello,

I just updated the Report Dlls to the newest Pprerelease Version: SL_v5_2013.07.01 (from 2012)

Now I get an Exception when loading a new Report over WCF (ApplyRenderedReport(String xml))
But only AFTER I opened up the Editor Window.
bei Stimulsoft.Report.SL.RequestFromUser.Value.StiValueDateTimeItemControl..ctor(StiSLViewerControl viewerControl, StiVariable variable, StiReport report)
bei Stimulsoft.Report.Viewer.StiSLViewerControl.ShowDialogRequestFromUserVariables()
bei Stimulsoft.Report.Viewer.StiSLViewerControl.RefreshDialogs()
bei Stimulsoft.Report.Viewer.StiSLViewerControl.SetNewReport(StiReport value)
bei Stimulsoft.Report.Viewer.StiSLViewerControl.set_Report(StiReport value)
bei Stimulsoft.Report.Viewer.StiSLViewerControl.ApplyRenderedReport(String xml, Boolean isRequestFromUser)
bei Stimulsoft.Report.Viewer.StiSLViewerControl.ApplyRenderedReport(String xml)
bei WebVisuSLApplication.Reporting.ReportViewer.<>c__DisplayClass1.<Button_Click>b__0(Object o, EventArgs args)
bei System.Windows.Controls.ChildWindow.OnClosed(EventArgs e)
bei System.Windows.Controls.ChildWindow.Close()
bei System.Windows.Controls.ChildWindow.set_DialogResult(Nullable`1 value)
bei WebVisuSLApplication.Reporting.ReportChooser.<PcSysImageLink_LinkClicked>b__0(Object o, LoadReportCompletedEventArgs args)
bei WebVisuSLApplication.Common.WebVisuSLService.DataService.DataServiceClient.OnLoadReportCompleted(Object state)
One thing I noticed: the class Stimulsoft.Report.SL.RequestFromUser.Value.StiValueDateTimeItemControl is not available in my namespace.
Am I missing an assembly or something?

Thank you for your help.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ApplyRenderedReport NullRefrerence Exception

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Can you please send us a sample project which reproduce the issue for analysis.

Thank you.
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Re: ApplyRenderedReport NullRefrerence Exception

Post by nodo »

Hello,

Here is a simple Sample.

I think its a common problem.

1. Open the TestReport.mrt file
2. Go to the Preview page -> everything works fine and you see the "From" and "To" date pickers and the reset and submit buttons
3. Go back to the design page
4. Again go to the Preview page -> NullRefrerence Exception in Debug and the area with "from", "to" and the reset/submit buttons is gone.

My guess is, there is a problem with parsing the Date in the correct format.

Thank you!
Attachments
ReportingTest.zip
SampleProject
(2.97 MiB) Downloaded 273 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ApplyRenderedReport NullRefrerence Exception

Post by Alex K. »

Hello,

Please clarify which version of WCF do you use? On version 2.0.2.1 we colud not couldn't reproduce the issue.
Please check the last version of WCF.

Thank you.
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Re: ApplyRenderedReport NullRefrerence Exception

Post by nodo »

What do you mean by WCF Version 2.0.2.1?

I'm using WCF (System.ServiceModel.dll) from the latest .net Framework (4.0.30319.1) and the latest Silverlight 5 SDK

Why would the Sample project use WCF in any way?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ApplyRenderedReport NullRefrerence Exception

Post by Alex K. »

Hello,

We made some improvements in that direction.
Please check the next prerelease build which will be available on this week.

Thank you.
nodo
Posts: 7
Joined: Wed Jul 03, 2013 2:58 pm

Re: ApplyRenderedReport NullRefrerence Exception

Post by nodo »

Looks like the problem is solved in the latest prerelease build.

Thank you very much for the quick fix.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: ApplyRenderedReport NullRefrerence Exception

Post by Alex K. »

Hello,

We are always glad to help you!
Let us know if you need any additional help.
Locked