水晶报表报错----Not enough memory for operation.

mac1106 2010-11-16 11:18:09
Server Error in '/' Application.
--------------------------------------------------------------------------------

Not enough memory for operation.
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.

Exception Details: System.Runtime.InteropServices.COMException: Not enough memory for operation.

Source Error:


Line 174: ReportDocument report = new ReportDocument();
Line 175: string reportPath = Server.MapPath("R_s_moveinfo.rpt");
Line 176: report.Load(reportPath);
Line 177: report.SetDataSource(ds); CrystalReportViewer1.ReportSource = report;
Line 178: CrystalReportViewer1.DataBind();


Source File: e:\WEB\epqc2\front\RS_moveinfo.aspx.cs Line: 176

Stack Trace:


[COMException (0x80041004): Not enough memory for operation.]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +87
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +366

[CrystalReportsException: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +429
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +871
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +73
front_RS_moveinfo.Page_Init(Object sender, EventArgs e) in e:\WEB\epqc2\front\RS_moveinfo.aspx.cs:176
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +9
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834


有人知道是什么原因吗??我是在第一次点击成功,但是后来点击就会出错了,过了一段时间又好了,但是经常会出现这样的问题,麻烦各位了,给我想想则、、、、
...全文
415 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhylzf 2011-01-13
  • 打赏
  • 举报
回复
有用吗???
阿泰 2010-12-22
  • 打赏
  • 举报
回复
主要有两种情况可能导致这个错误信息
1:程序中未能及时释放报表对象,多次执行导致内存开销过大。
2:报表返回太多的数据,磁盘空间不足导致无法生成报表需要生成的临时文件
以上是跟报表有关的
还有就是机器由于其他原因资源消耗过大,导致无法支持报表应用启动

所以一是检查代码中是否有释放报表对象
二是坚持此时的数据量,还是就是检查C盘空间是不是不够了。
mac1106 2010-12-22
  • 打赏
  • 举报
回复
恩,谢谢泰哥!!!!!
天天天晴啊 2010-12-21
  • 打赏
  • 举报
回复
我重启一下Vs好了。碰到过。。。我看到我内存占用90%以上
zhangzhen_927116 2010-11-22
  • 打赏
  • 举报
回复
看不完 哈哈
flyerwing 2010-11-16
  • 打赏
  • 举报
回复
没碰见过,
帮忙顶!

4,816

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧