unable to evaluate expression because the code is optimized
Posted: Mon Aug 19, 2013 12:24 pm
when i am using the below code
**************************************
BillDetails.mrt was designed with oracle db using oracle connection
***************************************************************************************
Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();
report.Load(Server.MapPath("~/Reports/BillDetails.mrt"));
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiOracleAdapterService());
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiOracleDatabase());
string oracleConnection = "Data Source=******;User ID=******;Password=*******";
StiOracleDatabase stiDB = new StiOracleDatabase("OracleConnection", oracleConnection);
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(stiDB);
report.Compile();
//Stimulsoft.Report.Dictionary.StiVariable parameter = new Stimulsoft.Report.Dictionary.StiVariable("uspGetbillDetails", typeof(int));
//parameter.Value = "19";
//report.Dictionary.Variables["soa_id"] = parameter;
report["soa_id"] = 19;
report.Render();
// report.Show();
StiReportResponse.ResponseAsPdf(this, report);
i am getting an error as :
unable to evaluate expression because the code is optimized or native frame is on top of call stack at StiReportResponse.ResponseAsPdf(this, report); line.
in designer also if i run(preview) the report(parametarized report) its showing empty document.
please help me out
**************************************
BillDetails.mrt was designed with oracle db using oracle connection
***************************************************************************************
Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();
report.Load(Server.MapPath("~/Reports/BillDetails.mrt"));
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiOracleAdapterService());
StiConfig.Services.Add(new Stimulsoft.Report.Dictionary.StiOracleDatabase());
string oracleConnection = "Data Source=******;User ID=******;Password=*******";
StiOracleDatabase stiDB = new StiOracleDatabase("OracleConnection", oracleConnection);
report.Dictionary.Databases.Clear();
report.Dictionary.Databases.Add(stiDB);
report.Compile();
//Stimulsoft.Report.Dictionary.StiVariable parameter = new Stimulsoft.Report.Dictionary.StiVariable("uspGetbillDetails", typeof(int));
//parameter.Value = "19";
//report.Dictionary.Variables["soa_id"] = parameter;
report["soa_id"] = 19;
report.Render();
// report.Show();
StiReportResponse.ResponseAsPdf(this, report);
i am getting an error as :
unable to evaluate expression because the code is optimized or native frame is on top of call stack at StiReportResponse.ResponseAsPdf(this, report); line.
in designer also if i run(preview) the report(parametarized report) its showing empty document.
please help me out