【问题标题】:an error occurred on the server. printing will be stopped crystal report服务器上发生错误。水晶报表将停止打印
【发布时间】:2013-01-14 16:35:17
【问题描述】:

我正在使用水晶报表 2008。

报告在水晶报告查看器中绑定,但在打印报告时,我在警告框中收到以下错误“服务器上发生错误。打印将停止”两次并且它不打印或显示打印对话框.

查看事件日志时,触发了以下错误,

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          1/12/2013 2:03:55 PM`enter code here`
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      ComputerName
Description:
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 12/01/2013 02:03:55 م 
Event time (UTC): 12/01/2013 10:03:55 ص 
Event ID: 6d36a824679b43b192e1897e91673936 
Event sequence: 82 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/7/ROOT-4-130024585909318740 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Projects\Sample\ 
    Machine name: ComputerName

Process information: 
    Process ID: 2264 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\ SampleVssSrc 

Exception information: 
    Exception type: FileNotFoundException 
    Exception message: Could not load file or assembly 'CrystalDecisions.Web.resources, Version=12.0.2000.0, Culture=ar, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. 

Request information: 
    Request URL: //localhost:90/Sample/ Sample.aspx?ReportFileName= Sample.rpt&ReportPath=../Reports/General/../ Sample /Sample ReportViewer.aspx?ReportFileName =Sample Daily.rpt&ReportPath=../Reports/General/&ServletTask=Print&cmd=get_res&langcode=ar 
    Request path: /Reports/ Sample ReportViewer.aspx 
    User host address: ::1 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\ SampleVssSrc

Thread information: 
    Thread ID: 6 
    Thread account name: IIS APPPOOL\ SampleVssSrc
    Is impersonating: False 
    Stack trace:    at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalGetSatelliteAssembly(CultureInfo culture, Version version, Boolean throwOnFileNotFound)
   at CrystalDecisions.Web.CrystalReportViewer.OnPrintGetResource()
   at CrystalDecisions.Web.CrystalReportViewer.HandlePrint()
   at CrystalDecisions.Web.CrystalReportViewer.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

【问题讨论】:

    标签: c# crystal-reports-2008


    【解决方案1】:

    我已通过在 Page_Unload 事件中处理 Report Document 对象来解决此问题,请确保 Report 文档对象是全局声明的。这是由于临时文件夹内存造成的,临时报告文件会被创建,但不会被释放。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-14
      • 2016-04-28
      • 2013-03-02
      • 2012-01-02
      相关资源
      最近更新 更多