Hello, I have a problem with Cristal Report in Web-application.
I has downloaded and has installed .NET Runtime Distribution for Crystal Reports: CR XI R2(https://smpdl.sap-ag.de/~sapidp/012002523100009657852008E/crxir2sp4_net_si.zip).
And I has downloaded archive u201CWeb and Windows projects (Visual Studio .NET 2002/2003 and Visual Studio 2005)u201D (http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip)
I extracted all files from this archive and open project \crsdk_net_tutorials_115_en\DotNet2\CS_Web_CRVObjMod_DBLogon\
I replace the report from an example by my report and replace in a code the information for connection to the Database. My report work with Oracle Database.
I run this web-application and all ok. The report is connected to a database automatically, without requesting of the user connection parameters to a database.
But if many people do query to a Web application it work not correctly.
- At first the report cannot connect to database. The Web application returns to the user the form for input information for connection to the Database.
- In the second it simply ceases to work and returns an error:
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:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
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) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +332
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +988
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
_Default.ConfigureCrystalReports(String ReportPath) +752
_Default.Page_Init(Object sender, EventArgs e) +135
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +12
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
How to correct these errors?
Edited by: RuslanKuz on Mar 31, 2010 12:24 PM