简体   繁体   中英

Error in Crystal Report and ASP on IIS 8

I using VS 2008 and Crystal Report. When I test my application in debug mode it work correctly . but when I publish my project on IIS8 , it dos not work correctly and I got bellowing error:

    This field name is not known.Error in File C:\Windows\TEMP\ExamRecord_img {DAFBDC10-37ED-4DD5-8DCE-F9726C18E374}.rpt:
Error in formula  <Section_Visibility>.
'nextisnull({VR_CRSEXAMRECORD.CCL_ID})'
This field name is not known.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

this is my HTML code

<CR:CrystalReportViewer Visible="true" ID="CrystalReportViewer1" runat="server" AutoDataBind="true" CssClass="rptViewer" />

and this is ASP code

ReportDocument doc;
DataSet ds = new DataSet("SampleDS");
// Fill ds from Oracle => select * from View
doc = new ReportDocument();
doc.Load(Server.MapPath("Reports/" + rName + ".rpt"));
foreach (CrystalDecisions.CrystalReports.Engine.Table tb in doc.Database.Tables)
{
    // Bind Tabels
}
CrystalReportViewer1.ReportSource = doc;

检查Data Source因为在执行报告时需要选择他/她期望的database

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM