Unable to load report from file after upgrading to 2010.1.700
Posted: Fri Jun 11, 2010 1:47 pm
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'.
The file does in fact exist, and it did load under 2009.3.600 with the same code.
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.