Unable to load report from file after upgrading to 2010.1.700

Stimulsoft Reports.NET discussion
Post Reply
mvines
Posts: 35
Joined: Wed Aug 05, 2009 2:55 pm

Unable to load report from file after upgrading to 2010.1.700

Post 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.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Unable to load report from file after upgrading to 2010.1.700

Post 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.
mvines
Posts: 35
Joined: Wed Aug 05, 2009 2:55 pm

Unable to load report from file after upgrading to 2010.1.700

Post by mvines »

That was the issue, I probably should have figured that one out on my own.

Thanks for your time Jan
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Unable to load report from file after upgrading to 2010.1.700

Post by Andrew »

Ok! Always glad to help you.
Post Reply