Page 1 of 1

Unable to load report from file after upgrading to 2010.1.700

Posted: Fri Jun 11, 2010 1:47 pm
by mvines
I just upgraded to 2010.1.700 of Reports.Net and the Web Designer. When I verified that I had installed the new dlls and updated the config and aspx files appropriately I came across the following exception on StiReport.Load.

Object of type 'Stimulsoft.Report.Components.StiWatermark' cannot be converted to type 'Stimulsoft.Report.Components.StiWatermark'.

Code: Select all

Stack Trace: 


[ArgumentException: Object of type 'Stimulsoft.Report.Components.StiWatermark' cannot be converted to type 'Stimulsoft.Report.Components.StiWatermark'.]
   System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) +7536269
   System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig) +211
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +228
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +92
   System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) +25
   Stimulsoft.Base.Serializing.StiSerializing.SetProperty(PropertyInfo p, Object obj, Object value) +70
   Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props) +971
   Stimulsoft.Base.Serializing.StiSerializing.DeserializeObject(Object obj, StiPropertyInfoCollection props) +3408
   Stimulsoft.Base.Serializing.StiSerializing.Deserialize(Object obj, Stream stream, String application) +441
   Stimulsoft.Report.SaveLoad.StiXmlReportSLService.Load(StiReport report, Stream stream) +246
   Stimulsoft.Report.StiReport.Load(StiReportSLService service, Stream stream) +341
   Stimulsoft.Report.StiReport.Load(Stream stream) +459
   Stimulsoft.Report.StiReport.Load(String path) +230
   VWGWebAgent.Reports.ReportDesigner.ShowReportDesigner() in C:\Development\WCSF\Trunk\Source\WebSites\VWGWebAgent\Reports\ReportDesigner.aspx.cs:82
   VWGWebAgent.Reports.ReportDesigner.Page_PreRender(Object sender, EventArgs e) in C:\Development\WCSF\Trunk\Source\WebSites\VWGWebAgent\Reports\ReportDesigner.aspx.cs:51
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnPreRender(EventArgs e) +8682950
   Gizmox.WebGUI.Forms.Hosts.AspPipeLinePage.OnPreRender(EventArgs e) +230
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

The file does in fact exist, and it did load under 2009.3.600 with the same code.

Code: Select all

StiReport stiReport = new StiReport();
stiReport.Load(fileName); // exception is on this line.

Unable to load report from file after upgrading to 2010.1.700

Posted: Mon Jun 14, 2010 12:55 am
by Jan
Hello,

This error say that on your computer exist two different versions of same assembly. Please check GAC, Program Files Stimulsoft installation, referenced assemblies, web.config, bin folders.

Thank you.

Unable to load report from file after upgrading to 2010.1.700

Posted: Mon Jun 14, 2010 9:32 am
by mvines
That was the issue, I probably should have figured that one out on my own.

Thanks for your time Jan

Unable to load report from file after upgrading to 2010.1.700

Posted: Mon Jun 14, 2010 2:04 pm
by Andrew
Ok! Always glad to help you.