Exception while loading Saved Byte Array (StiMarginsTypeCon)

Stimulsoft Reports.Silverlight discussion
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Exception while loading Saved Byte Array (StiMarginsTypeCon)

Post by shyam.pundkar »

Hello Team,

I have a report generated from the designer . I am saving it as a blob in Silverlight client. Then I am passing that to server (.net)to load that blob into another instance of report, at the time of loading I am getting an exception as below. I tried searching for StiMarginsTypeConverter but have not got any results. we are using
stimulsoft report 2014.3.0.0. Please help!

Silverlight 5.1.50901.0,

var Blob =generatedReport.SaveToByteArray(); // in silverlight
var report = new StiReport(); // in dotNet
report.Load(Blob); // in dotNet

Exception:
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s)
at Stimulsoft.Report.Components.Design.StiMarginsTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Stimulsoft.Base.StiObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject2(String str, Type type)
at Stimulsoft.Report.StiReportObjectStringConverter.StringToObject(String str, Type type)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props)
at Stimulsoft.Base.Serializing.StiSerializing.Deserialize(Object obj, Stream stream, String application)
at Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream)
at Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream)
at Stimulsoft.Report.StiReport.Load(Stream stream)
at Stimulsoft.Report.StiReport.Load(Byte[] bytes)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by Alex K. »

Hello,

Please send us a sample project which reproduces the issue for analysis.

Thank you.
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by shyam.pundkar »

Hi Aleksey,

The issue is not consistently reproducible.
But based on the stack trace it seems something related to margin and its value is passed as null.
I will still try to create a sample project and comeback to you...

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by HighAley »

Hello.

Do you use the same versions of our product for Silverlight and .Net?
There could be changes in the file format.

Thank you.
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by shyam.pundkar »

Ohh good point actually the Server has 2015.3.0.0 version and Client has 2016.1.19.0 version.
Do you think this could be the issue and should i make them same as 2016.1.19.0?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by HighAley »

Hello.

Yes, exactly. we are trying to keep compatibility with reports created in old versions of our product.
But we don't guarantee that the reports created in the newer version will be opened by older product.

Thank you.
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by shyam.pundkar »

Thank you so much HighAley!!! just one more thing to ask for, could please route me to an appropriate link that will take me to .NET Stimulsoft Server Report dlls which are compatible with Silverlight version 2016.1.19.0?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by HighAley »

Hello.

Sorry, but official builds are available only.
You could find them in the registered user area.
Please, try to send a request to support@stimulsoft.com.

Thank you.
shyam.pundkar
Posts: 56
Joined: Fri Feb 21, 2014 9:26 am

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by shyam.pundkar »

Thanks HighAley!!!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Exception while loading Saved Byte Array (StiMarginsType

Post by HighAley »

Hello.

You are welcome.

Thank you.
Locked