简体   繁体   English

IIS 8上的Crystal Report和ASP错误

[英]Error in Crystal Report and ASP on IIS 8

I using VS 2008 and Crystal Report. 我使用VS 2008和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: 但是,当我在IIS8上发布项目时,它无法正常工作,并且出现了以下错误提示:

    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 这是我的HTML代码

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

and this is ASP code 这是ASP代码

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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