水晶报表 - COMException (0x800003e5): 打开报表失败
2008-05-06 15:16
274 查看
1 操作:点击打印按钮(打印GridView列表中的记录)
2 错误信息:
================================================================================================
"/"应用程序中的服务器错误。
--------------------------------------------------------------------------------
打开报表失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Runtime.InteropServices.COMException:打开报表失败。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[COMException (0x800003e5): 打开报表失败。]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open (Object& DocumentPath, Int32 Options) +77
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +218
[Exception: 加载报表失败。]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +273
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +875
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +52
Report.Web.Report_Ord_Tihuodan.Page_Load(Object sender, EventArgs e) in f:/application/web/erpreport/web/report_ord_tihuodan.aspx.cs:89
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
==========================================================================================================
3 解决过程
3.1 修改注册表
HKEY_LOCAL_MACHINE->SOFTWARE->Crystal Decisions->10.2->Report ApplicationServer->Server>PrintJobLimit为-1或300,1000,测试次数最多可延长至148次
重启IIS,测试网站,点击次数为235左右时又出错了(PrintJobLimit设置为-1,0,300,500结果一样)
3.2 系统TEMP目录赋予users操作的权限
3.3 使用BAT文件定时重启IIS
清空C:/Documents and Settings/username/ASPNET/Local Settings/Temp/ 下tmp文件
不是长久之计。
3.4 关闭和释放报表资源
private void Page_Unload(object sender, EventArgs e)
{
ReportDoc.Close();
ReportDoc.Dispose();
}
First, the problem is the AppPool, if you review the task manager you can see w3wp.exe with a high Mem Usage this is because you run many reports at the same time and keep alive for many time, this issue produce the error, because don't have more memory assigned to run more reports, the limit are 75. Review your settings in IIS Manager, indetify you application pool, in the Performace Options set "Shutdown worker proccess..." to 5 or something similar and "Limit the kernel request queue.." to 4000 or something similar. Open the report and see if w3wp.exe close or reduce Mem Usage in the time where you set.
4 总结
应急措施:重启IIS
永久措施:关闭和释放报表资源
5 参考文章
5.1 "The maximum report processing jobs limit configured by your system administrator has been reached."
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=71929&SiteID=1
5.2 Use the Close() Method to free up the report
http://msdn.microsoft.com/en-us/library/ms225490(VS.80).aspx
5.3 开启报表出错
http://blog.csdn.net/daisylh/archive/2006/12/12/1439312.aspx
2 错误信息:
================================================================================================
"/"应用程序中的服务器错误。
--------------------------------------------------------------------------------
打开报表失败。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Runtime.InteropServices.COMException:打开报表失败。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[COMException (0x800003e5): 打开报表失败。]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open (Object& DocumentPath, Int32 Options) +77
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +218
[Exception: 加载报表失败。]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +273
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +875
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +52
Report.Web.Report_Ord_Tihuodan.Page_Load(Object sender, EventArgs e) in f:/application/web/erpreport/web/report_ord_tihuodan.aspx.cs:89
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750
==========================================================================================================
3 解决过程
3.1 修改注册表
HKEY_LOCAL_MACHINE->SOFTWARE->Crystal Decisions->10.2->Report ApplicationServer->Server>PrintJobLimit为-1或300,1000,测试次数最多可延长至148次
重启IIS,测试网站,点击次数为235左右时又出错了(PrintJobLimit设置为-1,0,300,500结果一样)
3.2 系统TEMP目录赋予users操作的权限
3.3 使用BAT文件定时重启IIS
清空C:/Documents and Settings/username/ASPNET/Local Settings/Temp/ 下tmp文件
不是长久之计。
3.4 关闭和释放报表资源
private void Page_Unload(object sender, EventArgs e)
{
ReportDoc.Close();
ReportDoc.Dispose();
}
First, the problem is the AppPool, if you review the task manager you can see w3wp.exe with a high Mem Usage this is because you run many reports at the same time and keep alive for many time, this issue produce the error, because don't have more memory assigned to run more reports, the limit are 75. Review your settings in IIS Manager, indetify you application pool, in the Performace Options set "Shutdown worker proccess..." to 5 or something similar and "Limit the kernel request queue.." to 4000 or something similar. Open the report and see if w3wp.exe close or reduce Mem Usage in the time where you set.
4 总结
应急措施:重启IIS
永久措施:关闭和释放报表资源
5 参考文章
5.1 "The maximum report processing jobs limit configured by your system administrator has been reached."
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=71929&SiteID=1
5.2 Use the Close() Method to free up the report
http://msdn.microsoft.com/en-us/library/ms225490(VS.80).aspx
5.3 开启报表出错
http://blog.csdn.net/daisylh/archive/2006/12/12/1439312.aspx
相关文章推荐
- 临时文件未清理导致水晶报表周期性打开报表失败
- 水晶报表周期性打开报表失败
- 临时文件未清理导致水晶报表周期性打开报表失败
- [水晶报表]打开报表失败
- 水晶报表加载失败的解决方法
- 解决把水晶报表下载到客户端过程中,出现下载整个页面(.aspx)或者直接载web页中打开word文件的问题!
- 解决水晶报表登陆失败的方案
- 水晶报表9.0出现“登陆失败”错误的解决方案
- 关于水晶报表加载失败的解决办法.
- 故障解决:VS2005的水晶报表在WEB应用程序中多次使用后,就会出现加载报表失败.重启WEB服务器又正常了.过一段时间又出同样问题
- 水晶报表加载失败
- VS 2005 水晶报表 使用方法及 出现“加载报表失败” 的解决方法
- vs2005水晶报表WEB打印问题、加载报表失败。-解决办法
- 开发中水晶报表表头加载失败解决办法
- VS 2005 水晶报表 使用方法及 出现“加载报表失败” 的解决方法
- 关于水晶报表加载失败的解决办法.
- 水晶报表加载失败
- 水晶报表加载失败
- sharepoint 2013 打开rdl报表,报表服务器数据库内出错。此错误可能是因连接失败、超时或数据库中磁盘空间不足而导致的
- 水晶报表发布的问题:不能正常启动打开报表文件