Crystal Reportdocument.Load导致ASPNET_WP.EXE意外关闭 [英] Crystal Reportdocument.Load Causes ASPNET_WP.EXE to Close unexpectedly
问题描述
我有一个用Visual Studio 2008编写的ASP.NET Web应用程序。我也在使用AJAX Extension,而我的开发笔记本电脑上安装了所有最新修补程序的XP PROF SP3。
asp.net网页将Crystal Report导出为PDF文件。在运行时按下导出按钮时,代码首次成功运行生成PDF文件。但是,如果我第二次点击按钮,我会收到此错误:
--------------------------
Microsoft Visual C ++运行时库
运行时错误!
程序c:\ windows \ microsoft.net \ f
此应用程序已要求Runtime以不寻常的方式终止它。
请联系应用程序的支持团队以获取更多信息。
- ------------------------
myReport.load调用正好发生此错误。我已经妥善处理了报告文件。另外我注意到当我在Windows 2003 Server上部署应用程序的运行时环境时,我没有收到此错误。
PLease帮助。
Hi,
I have a ASP.NET Web application written in Visual Studio 2008. I am also using AJAX Extension with it and my development laptop has XP PROF SP3 with all latest hotfixes installed.
The asp.net web page exports a Crystal Report to a PDF File. At run time when the export button is pressed, the code runs sucessfully first time producing the PDF file. However, if I click the button 2nd time, I get this error:
--------------------------
Microsoft Visual C++ Runtime Library
Runtime Error!
Program c:\windows\microsoft.net\f
This applicaiton has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
--------------------------
This error occurs exactly on myReport.load call. I have done proper disposal of report docuement. Also I noticed that when I deployed the runtime environment of my application on a Windows 2003 Server, I do not get this error.
PLease help.
推荐答案
我不确定我是否正确理解了您的问题。但是,如果您丢弃报告文档然后重新打开它,则可能会导致问题。在这种情况下,我建议你使用Close()而不是Dispose()。
I am not sure if I understood your problem correctly. But if you dispose the Report Document and then re-open it, it may cause problems. In such a case, I suggest you use Close() instead of Dispose().
这篇关于Crystal Reportdocument.Load导致ASPNET_WP.EXE意外关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!