stimulsoft report generate/ bind issue.

Stimulsoft Ultimate discussion
Post Reply
johnchen
Posts: 2
Joined: Tue Jul 02, 2013 4:05 am

stimulsoft report generate/ bind issue.

Post by johnchen »

hi,

I have facing some convert / migrate problem. while my old report version is 2011.3.1200 to 2012.3.1500

after I copied those report dll, assembly in my project. the report file all not able to run/ execute.

it given me exception as below
Object of type 'Stimulsoft.Report.Components.StiPage' cannot be converted to type 'Stimulsoft.Report.Components.StiPage'.

System.ArgumentException was unhandled by user code
Message=Object of type 'Stimulsoft.Report.Components.StiPage' cannot be converted to type 'Stimulsoft.Report.Components.StiPage'.
Source=mscorlib
StackTrace:
at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
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.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(String path)
at ieHRMS.WebModules.Report.ReportMethod.CreateStimulReport(ReportList reportEnum) in D:\Business\Project\eBox2010\Web\WebModules\Report\ReportMethod.cs:line 1798
at ieHRMS.WebModules.Report.Payroll.PayslipRptStiFilterForm.GenerateReport() in D:\Business\Project\eBox2010\Web\WebModules\Report\Payroll\PayslipRptStiFilterForm.aspx.cs:line 790
at ieHRMS.WebModules.Report.Payroll.PayslipRptStiFilterForm.btnGenerate_Click(Object sender, EventArgs e) in D:\Business\Project\eBox2010\Web\WebModules\Report\Payroll\PayslipRptStiFilterForm.aspx.cs:line 73
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:


need your clarify and assist from stimul. thank you!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: stimulsoft report generate/ bind issue.

Post by HighAley »

Hello.

All report saved as dll-files are linked to the Stimulsoft assemblies of the certain version.
If you upgrade to the newer version, you should recompile your reports with these assemblies.

Thank you.
Post Reply