New Problem

Stimulsoft Reports.WEB discussion
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »

Sorry for the delay, but I was on vacation.

I downloaded the latest version...and I am now getting an error message.

The following error was caused when I tried create a new report with the following code.

Stimulsoft.Report.StiReport stiReport = new Stimulsoft.Report.StiReport();


DataSet ds = PrestoReportsManager.Instance.GetSQLViewStructure(SQLViewName);

stiReport .RegData(ds); // The dataset is valid.
stiReport .Dictionary.ImportXMLSchema(ds);



Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyDictionary = true;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyConnections = true;
Stimulsoft.Report.Web.StiWebDesignerOptions.ModifyVariables = true;

stiReport .Dictionary.Synchronize();
WebReportDesigner.Design(stiReport );





Value cannot be null.Parameter name: InString

body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }





Server Error in '/Presto3_1' Application.

Value cannot be null.Parameter name: InString



Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.



Exception Details: System.ArgumentNullException: Value cannot be null.Parameter name: InString

Source Error:






An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.







Stack Trace:






[ArgumentNullException: Value cannot be null.
Parameter name: InString]
System.Convert.FromBase64String(String s) +0
Stimulsoft.Base.StiGZipHelper.Unpack(String str) +7
Stimulsoft.Report.StiReport.LoadPackedReportFromString(String reportStr) +13
Stimulsoft.Report.Web.StiWebDesigner.LoadReportFromString(String reportString, Boolean packed, Boolean regData) +57
Stimulsoft.Report.Web.StiWebDesigner.OnInit(EventArgs e) +701
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Control.InitRecursive(Control namingContainer) +210
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378










Version Information: Microsoft .NET Framework Version:2.0.50727.3607; ASP.NET Version:2.0.50727.3082





MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »

One more thing.

The very next time I tried to do the EXACT SAME THING....It worked fine.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello, Mike

Most likely there is some problem with temporary report storage in the server cache. We have added a new property UseCache and a new event OnGetReport for WebDesigner. Use this event to load the report.

The patch will be available in the next prerelease build from May 10.
Please let us know if you need the patch immediately.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »

Thank you.

I can wait for the May 10th build. But will need a final build before June. We plan on deploying the latest of our product with Stimulsoft by June.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Let us know about the result.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


Downloaded build from 5-10.

I can see the new property UseCache.

But there doesn't seem to be a method OnGetReport.

Am I missing.

The WebDesigner version is 2010.2.717.0
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »


I got the OnGetReport method to show up...Just re-did everything.

Testing now to see if this eliminates the 2032 error. Will let you know later today.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello, Mike

Please use the GetReport event.

Thank you.
Attachments
415.event.PNG
415.event.PNG (9.18 KiB) Viewed 4126 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

New Problem

Post by Vladimir »

Hello, Mike

Let us know about the result.

Thank you.
MikeD
Posts: 86
Joined: Fri Feb 12, 2010 4:23 pm
Location: USA

New Problem

Post by MikeD »

I'm a little confused on how to use this new method.

You said to use it to Load the report. Do you mean the StiReport.Load() method. Where I pass in the byte array??

Any chance you could give me a quick example of how it's used.
Post Reply