Page 1 of 1

ReportDesigner.Design() ThreadAbortException

Posted: Wed Apr 16, 2014 10:38 am
by Cheguevara
hello,

in my application I use a button to open the designer.

protected void DesignReport_Click(object sender, EventArgs e)
{
StiReport stiReport = new StiReport();
stiReport.Load(Server.MapPath("~/Reports/Templates/Test.mrt"));
try
{
stiReport.DataStore.RegData("ReportData", "Test");
this.ReportDesigner.Report= stiReport;
this.ReportDesigner.Design();
}
catch (ThreadAbortException exception)
{
RadWindowManager.RadAlert(exception.Message, 350, 100, "XXX", null);

}
}

I get the following error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

I searched nearly 2 days for any solution and could not find anything.
Any ideas?

Re: ReportDesigner.Design() ThreadAbortException

Posted: Wed Apr 16, 2014 11:49 am
by HighAley
Hello.

Could you specify which designer do you use?
Please, send us sample project which reproduces the issue.

Thank you.

Re: ReportDesigner.Design() ThreadAbortException

Posted: Thu Apr 17, 2014 9:36 am
by Cheguevara
Hello,

I use the StiWebDesigner.
Now I prepared a sample project, but in this sample the designer works fine. In my "real" application it does not work.
I will search the differences between the projects. If I can reproduce the behavior I will send a sample.

Thanks

Re: ReportDesigner.Design() ThreadAbortException

Posted: Thu Apr 17, 2014 1:52 pm
by HighAley
Hello.

We are waiting for your sample project.

Than you.