Crystal Reports error - The Report Application Server failed

Hi,
I am getting the following error on XP Professional system. These reports were built earlier by one of my collegue and am trying to use the app but i stuck up getting the below error. The report gets failed
repPath=Server.MapPath ("./Reports/Umbrellas.rpt");
crReportDocument.Load(repPath); //Fails here
crReportDocument=SetLogonForReport(crReportDocument);
crReportDocument.SetParameterValue ("fromDate",DateTime.Parse (fromdt) );
crReportDocument.SetParameterValue ("toDate", DateTime.Parse (todt) );
I tried in design time attaching to Crystal Reports Viewer object , i get the same error. It looks like something related to Crystal Reports got corrupted in this system.
Please find the stack trace for the error
Stack Trace:
[COMException (0x80004005): The Report Application Server failed]
   CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
[Exception: Load report failed.]
   CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
   CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
   CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated)
   CrystalDecisions.ReportSource.LocalReportSourceBase.GetPage(PageRequestContext pageReqContext)
   CrystalDecisions.Web.ReportAgent.  (Boolean  o)
   CrystalDecisions.Web.CrystalReportViewer.OnPreRender(EventArgs e)
   System.Web.UI.Control.PreRenderRecursiveInternal() +62
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Control.PreRenderRecursiveInternal() +125
   System.Web.UI.Page.ProcessRequestMain() +1488
Environment:
.NET v1.1.4322
Crystal Reports 10.0.0.533
OS: Windows XP Professional - Ver 2002  Severice Pack 2
I tried some of the solutions provided  by searching web,  it does not work. Please help!!!
Appreciate your help on this.
Edited by: KMallik2000 on Jul 15, 2009 4:39 PM

Hi,
I am trying to replicate the same issue on new desktop which has crystal reports 9.1 & 10 installed. I still see crystal reports 9.1 controls when i open VS.net. when i compare both desktop installed softwares, i found that the other desktop has "Crystal Reports 10 .NET runtime installed" which is not there on the new desktop. please advise whether i need to install this software to get ver 10 components installed? Appreciate your help on this. can you also advise the software download location for 10 .net run time installation?
In other words, though crystal reports 10 got installed on this desktop but it is not getting referenced in VS.NET. I am seeing only 9.1 version assemblies are being used. hence my solution is not getting compiled in this desktop. Please advise how to get the version 10 assemblies referenced in the solution
Edited by: KMallik2000 on Jul 20, 2009 4:46 PM

Similar Messages

  • The existing Application Server Installation is corrupted

    Well I downloaded the Java Studio Creator and wanted to test it on a Debian GNU/Linux box. See what happened while installing it:
    http://people.freenet.de/jtocancipa/jsc2_install_bug_debian.jpg
    http://people.freenet.de/jtocancipa/install.log.gz
    Not nice, unfortunately I don't have the time now to debug the shell script inside the creator-2-linux-en.bin file, so if anyone knows how to fix this... thanks in advance.

    Hi,
    I am having the same problem on a Gentoo installation. At the end of installation I get the error
    - The existing application server installation is corrupted I have installed both as root and a normal user.
    The ~/sun/Creator2_1/SunAppServer8 directory is empty and I can't use _unist/unistall.bin as it complains about being unable to stop the server.
    The install log gives these errors:
    (18-May-2006 04:07:32), Setup.product.install, com.sun.installer.InstallApplicationServerAction, msg1, Installing Application Server...
    Checking available disk space...
    Checking Java(TM) 2 Runtime Environment...
    Extracting installation files...
    Launching Java(TM) 2 Runtime Environment...
    Deleting temporary files...
    exitcode = 64
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, err,
    Error occurred while installing [64] -> /home/stanwayg/sun/Creator2_1/_uninst/install.sh /home/stanwayg/sun/Creator2_1/_uninst statefile ../install.log /home/stanwayg
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, err,
    Error occurred while Installing Application Server....
    (18-May-2006 04:07:55), Setup.product.install, com.sun.installer.InstallApplicationServerAction, msg1, Finished
    (18-May-2006 04:07:55), Setup.product.install, com.ibm.wizard.platform.linux.LinuxProductServiceImpl, msg1, installing Post Install Core Action (PostInstallCoreAction)
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: stopserver.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: startserver.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: ij.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: sysinfo.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to modify file: sysinfo.ksh
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy DataDirect drivers
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy driveradapter.jar
    (18-May-2006 04:08:05), Setup.product.install, com.sun.installer.PostInstallCoreAction, err, Unable to copy appserv-env.jarI re-downloaded the installation file and still get the problem. Is there a solution to this?
    Regards
    GWS
    I've been trying further to get this to install and I have found that it is actually the SJSAS installation that is the problem.
    If I try to install SJSAS using any route (bundled with Netbeans, bundled with Creator or on its own) the installation fails.
    If I try ot install using the freestanding SJSAS installler I get errors about their being insufficient disk space even though there is plenty of room (250Gig).
    But still not much closer to getting it working.

  • Custom tool error for COMexception: The report application server failed.

    hi there,
    i am using crystal reports for the last one year onwards, i don't get any errors till know. Yesterday when i modified some information in 40 reports. out of these reports 34 reports are successfully build, but for the remaining six reports the code is not generating.
    Custom tool error: "Code generator 'ReportCodeGenerator' failed.  Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The Report Application Server failed
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
       at CrystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
       at CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
    i am not understanding why it is getting for me, Please help me

    Hello,
    Whoever wrote the CustomCodeGenerator will have to help you with this one. We know nothing about the underlying code they are using and therefore can't determine the cause.
    Appears the error is it can't even load the report so there is something wrong with the workings. Open the report again in CR Designer and Verify Database and then check the changes you did. Something is not right or the DB driver their application is using does not match with what you are using.
    Don

  • Load Report Failed - Report Application Server Failed error at runtime

    Hello, I'm pretty new to Crystal Reports so please bear with me.
    I just installed CR 2008 on my development box, which is running VS2005 .NET 2.0.  I changed over all of my assembly references in my web.config to the new version:
    <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral,
    PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
    Also the webpage that is displaying the ReportViewer object has this reference as well:
    <%@ Register Assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    Now, in my code behind I am simply trying to open a pre-built crystal report that came in the sample pack
    When I try and do this in our already built website I get an error:
    "Load report failed"
    With the inner exception saying:
    "The Report Application Server failed"
    This same piece of code works perfectly if I build a new website, however when I try and impliment this into our existing code base I get the error shown above.  Also the samples I've used all use .NET 3.5 and the website is in 2.0.  I'm not sure if that is a factor or not but that is also another piece of information that could be useful.
    Any help on this matter would be greatly appreciated.  Thank you for you're time.
    Chris McMahan
    Edited by: Arithal on Aug 4, 2009 8:36 PM

    And finally the stack trace.  Sorry for the length of these posts.
    [COMException (0x800001f5): The Report Application Server failed]
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +575
    [CrystalReportsException: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +646
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1374
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +169
       Report_Viewer_Crystal_CrystalView.ConfigureCrystalReports() in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:49
       Report_Viewer_Crystal_CrystalView.Page_Init(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Report Viewer\Crystal\CrystalView.aspx.cs:33
       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

  • Getting "The Report Application Server failed" when trying to view a report

    I'm getting an error pop up:
    Crystal Report Windows Forms Viewer
    The Report Application Server failed
    OK  
    When trying to display a report using the Crystal Reports viewer (as shipped with VS2008)
    The stack trace implies it's having problems rendering the first page of the report:
         System.Windows.Forms.dll!System.Windows.Forms.MessageBox.ShowCore(System.Windows.Forms.IWin32Window owner = null, string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Windows.Forms.MessageBoxDefaultButton defaultButton, System.Windows.Forms.MessageBoxOptions options, bool showHelp) + 0x220 bytes     
         System.Windows.Forms.dll!System.Windows.Forms.MessageBox.Show(string text, string caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) + 0x18 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.MainReportDocument.GetPage(CrystalDecisions.Shared.PageRequestContext context = {CrystalDecisions.Shared.PageRequestContext}) + 0x6a9 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.ReportDocumentBase.GetPage(int pageN = 1) + 0x1a3 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowNthPage(int PageNumber = 1) + 0x79 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.DocumentControl.ShowFirstPage() + 0x48 bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.PageView.ShowFirstPageEx() + 0x1ec bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport() + 0xea bytes     
         CrystalDecisions.Windows.Forms.dll!CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(System.Windows.Forms.PaintEventArgs evtArgs = {ClipRectangle = {System.Drawing.Rectangle}}) + 0x182 bytes     
         System.Windows.Forms.dll!System.Windows.Forms.Control.PaintTransparentBackground(System.Windows.Forms.PaintEventArgs e, System.Drawing.Rectangle rectangle, System.Drawing.Region transparentRegion = {System.Drawing.Region}) + 0x16c bytes     
    Any ideas how to fix this?

    There is a good process for getting bugs fixed. However, you will have to provide a reliable way of reproducing the issue. E.g.; I can not go to R&D and ask that they fix a bug with a report that sometimes works and sometimes does not work.
    I suspect the best way to approach this, will be to actually see the report and try to determine what part of the report may be the issue. To be able to share the report, you will have to create a phone case here:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    and discuss this at length with a support engineer.
    Ludek

  • Getting error: Report Application Server failed

    I started posting my problem in thread below and have been advised to continue in this forum
    Reference thread: The Report Application Server failed
    My problem occurs in a asp application (vb 2005) and also when I run the Crystal Report stand alone (xi rel 2).
    The asp application does not render any other messages than "report Application Server Failed" but running the CR stand alone I get  "error formatting cross tab object". Whenver I get this message and if I switch page setting (either from landscape to portrait or portrait to landscope) it work for the report in question.
    I have now advanced a little further in trying to solve the issue or at least find what is wrong. I have created a .net windows application where I export the CR to disk
    Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions
    myCrystalReport1.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
    myCrystalReport1.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
    DiskOpts.DiskFileName = ReportPath & ReportName
    myCrystalReport1.ExportOptions.DestinationOptions = DiskOpts
    myCrystalReport1.Export()
    I get the same problems, some reports will not let me export and I am getting error:
    CrystalDecisions.CrystalReports.Engine.InternalException: The Report Application Server failed ---> System.Runtime.InteropServices.COMException (0x800003E5): The Report Application Server failed
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
    My default page set up is landscape and  if I now reverse the page set up like: myCrystalReport1.PrintOptions.PaperOrientation = PaperOrientation.Portrait it will let me export.
    My windows application exports hundreds of reports in a single run and by toggling between landscape and portrait I manage to get it working when I get an export error (like above).
    Was hoping that anyone couldm point me in a good direction, I've been fighting this problems for many days now and I do not have a solution as to why this is happening. Thank you.

    Hi, 
    The cross-tab reports that are causing this error, do they have any formatting formulas on any of the objects? 
    Are your using any running totals or setting the Evaluation Time using WhilePrintingRecords? 
    I've run into this problem with crosstabs when I created a Display String formula using Running Totals. 
    The report cannot render the report because the running total is conflicting with the results of the crosstab. 
    When you right-click an object and go to Format Field.  In the Common tab if the Display String has a formula set, remove or comment it out.  Do this for all the objects and try running the report again. 
    Good luck,
    Brian

  • What causes The Report Application Server failed exception?

    My environment:
    Windows Server 2008 R2  8 cores 6 gig of ram.
    A Windows Service running:
    Oracle 11g
    Oracle 11.2 64 bit client
    C# 4.0 Framwork
    Crystal Reports Visual Studio 2010 13.0.2000
    This window service needs to create 1100 pdf documents generated by crystal reports per hour for a minimum of 8 hours straight.
    These pdf files are written on the local file system.
    The Windows Service runs 3 threads per core.  Each thread can run up to 5 individual CR .rpt files in a sequential order.
    After 4000 pdf documents created, I get the following errors.
    1) The Report Application Server failed
    2) Server is out of memory.
    3)  Not enough memory for operation.
    4) Invalid report file path.
    Using Windows Task Manager Resource Monitor I noticed the following:
    After running 3000 pdf report requests, I stopped the processing pdf reports and noticed hundreds of
    \BaseNamedObjects\CrystalReportXalanInitizeMutex(Pid of my process)
    Why are they there after a close and dispose of the ReportDocument object?
    I ran Reggate ANTS Memory Profiler 7.2 to check for memory leaks in my code and my code that I have control over is clean.
    Why am I getting the exceptions above?
    My code calls ExportReportToSream.  After persisting the stream to disk, I call Close and Dispose on the stream.
    My Code
    ==========================================================================================        public MemoryStream ExportReportToStream(String reportName, LogOnInfo logOnInfo, string reportParams, CrystalExportFormatType formatType)
                ReportDocument reportDoc = new ReportDocument();
                if (!System.IO.File.Exists(reportName))
                    throw new InvalidArgumentException("reportName '" + reportName + "' does not exist", EngineExceptionErrorID.InvalidArgument);
                try
                    lock (lockThis)
                        reportDoc.Load(reportName, OpenReportMethod.OpenReportByTempCopy);
                    ApplyLogOnInfo(reportDoc, logOnInfo);
                    //apply params if any
                    if (!String.IsNullOrEmpty(reportParams))
                        ApplyStringParams(reportDoc, reportParams);
                    return (MemoryStream)reportDoc.ExportToStream((ExportFormatType)formatType);
                //we need to use the try catch, finally so the report can be disposed properly
                catch (Exception)
                    throw;
                finally
                    DistroyReportDocument(reportDoc);
                    reportDoc = null;
            private void ApplyStringParams(ReportDocument reportDoc, string reportParams)
                if (reportDoc == null)
                    return;
                if (String.IsNullOrEmpty(reportParams))
                    return;
                string[] paramsArray = reportParams.Split('|');
                string[] subParamsArray = null;
                //apply report params
                ParameterValueKind type;
                string paramValue = string.Empty;
                ParameterField paramField = null;
                ParameterDiscreteValue discreteValue;
                int x = 0;
                int paramCount = 0;
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    // The ParameterFields object contains all parameters including the subreports.
                    // Subreport params have the name of the subreport.
                    if (reportDoc.Name.Trim().ToUpper() == reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        paramCount++;
    Edited by: Ludek Uher on Dec 15, 2011 7:57 AM
    Edited by: Ludek Uher on Dec 15, 2011 7:58 AM

    if (paramsArray.Length < paramCount)
                    throw new InvalidArgumentException("invalid number of arguments passed to report '" + reportDoc.Name + "' expected " + reportDoc.ParameterFields.Count + " received " + paramsArray.Length, EngineExceptionErrorID.InvalidArgument);
                for (x = 0; x < reportDoc.ParameterFields.Count; x++)
                    if (reportDoc.Name.Trim().ToUpper() != reportDoc.ParameterFields[x].ReportName.Trim().ToUpper())
                        continue;
                    paramValue = paramsArray[x];
                    paramField = reportDoc.ParameterFields[x];
                    type = paramField.ParameterValueType;
                    if (paramField.EnableAllowMultipleValue && paramValue.IndexOf(',') > -1)
                        subParamsArray = paramValue.Split(',');
                        ParameterValues currentParameterValues = new ParameterValues();
                        foreach (string subParamValue in subParamsArray)
                            discreteValue = new ParameterDiscreteValue();
                            discreteValue.Value = subParamValue;
                            currentParameterValues.Add(discreteValue);
                        paramField.CurrentValues = currentParameterValues;
                    else
                        discreteValue = new ParameterDiscreteValue();
                        discreteValue.Value = paramValue;
                        paramField.CurrentValues.Add(discreteValue);
            private bool ApplyLogOnInfo(ReportDocument document, LogOnInfo logOnInfo)
                TableLogOnInfo info = null;
                // Define credentials
                info = new TableLogOnInfo();
                info.ConnectionInfo.AllowCustomConnection = true;
                info.ConnectionInfo.ServerName = logOnInfo.ServerName;
                info.ConnectionInfo.DatabaseName = logOnInfo.DatabaseName;
                // Set the userid/password for the report if we are not using integrated security
                if (logOnInfo.IntegratedSecurity)
                    info.ConnectionInfo.IntegratedSecurity = true;
                else
                    info.ConnectionInfo.Password = logOnInfo.Password;
                    info.ConnectionInfo.UserID = logOnInfo.UserID;
      // Main connection?
                document.SetDatabaseLogon(info.ConnectionInfo.UserID,
                                            info.ConnectionInfo.Password,
                                            info.ConnectionInfo.ServerName,
                                            info.ConnectionInfo.DatabaseName,
                                            true);
                // Other connections?
                foreach (CrystalDecisions.Shared.IConnectionInfo connection in document.DataSourceConnections)
                    connection.SetConnection(logOnInfo.ServerName, logOnInfo.DatabaseName, logOnInfo.IntegratedSecurity);
                    connection.SetLogon(logOnInfo.UserID, logOnInfo.Password);
                    connection.LogonProperties.Set("Data Source", logOnInfo.ServerName);
                    connection.LogonProperties.Set("Initial Catalog", logOnInfo.DatabaseName);
                // Only do this to the main report (can't do it to sub reports)
                if (!document.IsSubreport)
                    // Apply to subreports
                    foreach (ReportDocument rd in document.Subreports)
                        ApplyLogOnInfo(rd, logOnInfo);
                // Apply to tables
                foreach (CrystalDecisions.CrystalReports.Engine.Table table in document.Database.Tables)
                    TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
                    tableLogOnInfo.ConnectionInfo = info.ConnectionInfo;
                    table.ApplyLogOnInfo(tableLogOnInfo);
                    if (!table.TestConnectivity())
                        string strMsg = "ApplyLoginInfo failed to apply log in info for table " + table.Name + ",  Crystal Report: " + document.FileName + " DB: " + logOnInfo.DatabaseName + " UserID: " + logOnInfo.UserID;
                        throw new InvalidOperationException(strMsg);
                //verify logon info
                document.VerifyDatabase();
                return true;
            private void DistroyReportDocument(ReportDocument document)
                if (document == null)
                    return;
                 document.Close();
    Edited by: Ludek Uher on Dec 15, 2011 7:59 AM

  • CrystalReport - Getting "The Report Application Server failed" while export

    Hi Experts,
    I am using Crystal Reports 2008 in my ASP.NET application to generate reports. Everythings works fine in the development environment. When I deploy it on my Windows Server 2003 system, I get an error "The Report Application Server failed" while exporting the report from the report control. But, the report assuch is working fine even in the production environement. I experience this issue only while exporting to excel or anyother format.
    Do I need to configure anything or any settings needs to be turned on in the .rpt files!!
    Appreciate any help to get this issue resolved.
    TIA,
    Prem

    First a confirmation. When you say; "...exporting the report from the report control...", you mean the printer button on the viewer?
    Questions;
    What version of .NET?
    What Crystal Reports Service Pack are you on?
    How was the CR runtime installed on the server?\
    Can you print the report OK?
    Are you using sessions?
    Ludek

  • Report Application Server Failed

    Hi All,
    I have converted a PLD to Crystal Report. After importing this converted Crystal Report in B One , I have set it as default for Purchase Order document. When I am clicking on the Print Preview I am getting error as Report Application Server Failed. Please help me in addressing this issue.
    Regards,
    Noor Hussain

    Hello Noor,
    Before you import the CR layout into SAP B1 you may use the Preview in SAP B1 Function to know the report is really operating.
    Regards
    János

  • Tracing error log in Application Server for report service

    Hi guys,
    My company use Oracle Application Server with the Form version 10.1.2.0.2.
    Recently we experienced an error whereby the report services go down so frequent within a day.
    I checked into the alert log file of the Database and found out ORA-00600: internal error code, arguments: [kgassg_2], [], [], [], [], [], [], []
    Checked in Metalink, this might happen in 32 bit OS. So the suggestion is to check on the database memory parameters and extend the memory parameters affected to it.
    Since this report service problem happen quite often, I might think that there should be something happening with the Application server as well.
    Lastly, my questions are:
    1. How can i investigate this error in Application Server side?
    2. Is there any error log file in Application Server which is like alert log file in the database?
    Thank you

    Hi,
    I would like to know Do you want to create a error file in Application server?
    If yes, then it is quite easy. Just declare one internal table IT_LOG & store all the error records in this table.
    Then loop over the internal table IT_LOG & using open data set concept transfer all the records.
    Sample Code:
    INITIALIZATION.
    CONCATENATE '/INTERFACE/' SY-SYSID '/MM' into GV_DIR.
    START-OF-SELECTION.
    CONCATENATE GV_DIR '/' P_FILE INTO GV_FILE.
    OPEN DATASET GV_FILE FOR OUTPUT IN TEXT MODE.
    LOOP AT IT_LOG.
    CLEAR LV_STRING.
    CONCATENATE IT_LOG-F1 IT_LOG-F2 INTO LV_STRING SEPERATED BY ','.
    TRANSFER LV_STRING TO GV_FILE.
    ENDLOOP.
    CLOSE DATASET GV_FILE.
    Note: Here F1 & F2 are respective fields.

  • I Published a report on the report server but it's not showing in the internal application we use to access reports

    Hi, 
    I Published a report on the report server but it's not showing in the internal application we use to access reports. The name of the application we use is called MAMA and this application has access to all the reports on the SQL report server. My email is
    [email protected] my cell phone number is 201-888-7952. 
    Thanks. 

    Hi Roger,
    Based on my understanding, you publish a report on the report server. When you access reports with internal application, the report doesn’t display, right?
    In your scenario, since you mentioned you have published the report to report server, please go to report manager, check if you can see the published report and open the report properly. If the published report is displayed on report manager, it should not
    be the issue in Reporting Services. In this scenario, since the MAMA application has established connection with on report server, it may not update items on report server after you publish your report onto report server. So please try to “refresh” in MAMA
    or reconnect the report server. If issue persists, I suggest you contact the MAMA application vendor to get some more effective advices.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • SSRS Application to Retrieve Reports from the Report Server

    I have an application that is done using SSRS on visual studio and it connects to the report server on SQL server 2008 environment.
    I've been changing the existing reports using visual studio 2008 and modifying the reports on the report server. How do I add a new report to the application ? I created a new report and deployed it on the report server but it didn't show up in the application.
    I can access the application source code on visual studio 2010 and TFS (Team Foundation). Thanks. 

    Hi, 
    Thanks for the reply. This is a view and [AmountDue] is supposed to be [CurrentDueAmount] + [PastDueAmount] - [PaidAmount]. The view is not calculating [PaidAmount] right . Below is the complete code of the view. Do you see anything wrong in the code ?
    Thanks. 
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [iff].[FacilityFeeID], [LoanID] = NULL, [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_fee].[SectionType], [Name]
    = [iff].[Name], [ReceivedAmount], [dates].[CurrentDueAmount], 
                          [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply reset to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN 0 ELSE
    [pastdue].[PastDueFeeAmount] END, [PaidAmount] = CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN - [pastdue].[PastDueFeeAmount]
    ELSE 0 END, [AmountDue] = [unpaid].[UnpaidFeeAmount], [ID] = [iff].[FacilityFeeID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_FacilityFee] iff ON [if].[ID] = [iff].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_fee].[ID],
    [sis_fee].[SectionTypeCode], [SectionType] = [st_fee].[Name], [sis_fee].[INV_FacilityFeeID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_fee JOIN
                   [dbo].[INV_SectionType] st_fee ON [sis_fee].[SectionTypeCode] = [st_fee].[Code]
                                WHERE      [INV_FacilityFeeID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_fee ON [iff].[ID] = [isis_fee].[INV_FacilityFeeID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedFeeAmount]), 
                   [ReceivedAmount] = SUM([iffa].[ReceivedFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_fee].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     *
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [SectionID],
    [PastDueFeeAmount] = SUM([PastDueFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_loan].[SectionType], [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount], [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount], 
                          0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount],
    0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, 
                          [PaidAmount] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN 0 ELSE CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END END, 
                          [AmountDue] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN [CurrentDueAmount] ELSE [unpaid].[AmountDue] END, [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_loan ON [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[ExpectedPrincipalAmount]), 
                   [ReceivedAmount] = SUM([ReceivedPrincipalAmount])
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidPrincipalAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDuePrincipalAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = 'PIK Interest Applied', [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount] = - [dates].[CurrentDueAmount], 
                          [PastDueAmount] = - CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, [PaidAmount] = - CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END, [AmountDue] = - [AmountDue], [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL' AND [sis_loan].[SectionTypeCode] = 'LOAN_INT_PIK') isis_loan ON 
                          [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                   [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]

  • Please Help! ERROR: Application Server failed. when Refreshing

    Please help on this below issue. Thanks.
    We have a requirement that using ASP.NET (C#), we need to open saved .rpt file (saved with data and the rpt file is assigned to the web page as query string) and let the users refresh themselves with latest data by clicking at refresh icon of the CrystalReportViewer. But it throws 'The Report Application Server failed' error message. What could cause this message. below is the piece of code we are using to configure the report.
    private void ConfigureCrystalReports()
    string reportPath = Server.MapPath("Reports
    SEMS0001_UBS.rpt");
    this.CrystalReportSource2.ReportDocument.Load(reportPath);
    CrystalReportViewer1.Visible = false;
    SetDBLogonForReport(this.CrystalReportSource2.ReportDocument);
    int i = 0;
    foreach (ParameterField field in this.CrystalReportSource2.ReportDocument.ParameterFields)
    field.HasCurrentValue = true;
    //this.CrystalReportSource2.ReportDocument.Refresh();
    CrystalReportViewer1.ParameterFieldInfo = this.CrystalReportSource2.ReportDocument.ParameterFields;
    CrystalReportViewer1.Visible = true;
    public void SetDBLogonForReport(ReportDocument reportDocument)
    Tables tables = reportDocument.Database.Tables;
    connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
    connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
    connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
    //foreach (CrystalDecisions.Shared.IConnectionInfo connection in reportDocument.DataSourceConnections)
    // connection.SetConnection(ConfigurationManager.AppSettings["DBServer"], "", ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    // connection.SetLogon(ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
    tableLogonInfo.ConnectionInfo = connectionInfo;
    table.ApplyLogOnInfo(tableLogonInfo);
    //reportDocument.Database.Tables[0].ApplyLogOnInfo(tableLogonInfo);

    Attaching full code ... Our case is the RPT files are stored wih default parameters and saved data. We need to let users just refresh the rpt files with latest db data and overwrite with the same rpt files. But this code keep showing The application server failed mesg. when the refresh icon of viewer is clicked.
    Attaching the code as it is not properly attached in my previous reply ...
    =======================
    Begin - aspx.cs code
    =======================
    using System;
    using System.Data;
    using System.Data.OleDb;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.CrystalReports;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
    public partial class _Default : System.Web.UI.Page
        private ConnectionInfo connectionInfo = new ConnectionInfo();
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
                //ConfigureCrystalReports();
        protected void  CrystalReportViewer1_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void ConfigureCrystalReports()
            string reportPath = Server.MapPath(@"Reports\Report1.rpt");
            this.CrystalReportSource1.ReportDocument.Load(reportPath);
            CrystalReportViewer1.Visible = false;
            SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
            foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                field.HasCurrentValue = true;
            //this.CrystalReportSource1.ReportDocument.Refresh();
            CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
            CrystalReportViewer1.Visible = true;
        public void ReportDocument_RefreshReport(object sender, EventArgs e)
            try
    SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
    CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
                this.CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "passwd", "server", "");
                foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                    field.HasCurrentValue = true;
                    field.AllowCustomValues = true;
                    //field.EnableNullValue = true;               
                this.CrystalReportSource1.ReportDocument.Refresh();
                       this.CrystalReportSource1.ReportDocument.SaveAs(@"C:\Inetpub\wwwroot\XsiteRpt\Reports\Report1.RPT", true);
            catch (Exception ex)
                Msg.Text = ex.Message;
        public void SetDBLogonForReport(ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
            connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
            connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
    =======================
    End - aspx.cs.code
    =======================
    =======================
    Begin - Assemblies
    =======================
    <assemblies>
                        <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
          </assemblies>
    =======================
    End - Assemblies
    =======================
    =======================
    Begin - aspx
    =======================
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Xsite.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Refresh Report</title>
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Panel ID="PanelMsg" runat="server">
            <br />
            <asp:Label ID="Msg" runat="server" Font-Bold="False" Font-Names="Verdana" ForeColor="Navy"></asp:Label>
            <br />
            </asp:Panel>
            <asp:Panel ID="PanelViewer" runat="server">
            <CR:CrystalReportViewer ID="CrystalReportViewer1" OnReportRefresh="ReportDocument_RefreshReport" runat="server" AutoDataBind="True"
                EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReuseParameterValuesOnRefresh="True" HasRefreshButton="True" Height="820px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1" ShowAllPageIds="True" Width="1215px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">           
            </CR:CrystalReportSource>
            </asp:Panel>
        </div>
        </form>
    </body>
    </html>
    =======================
    End - aspx
    =======================

  • Install and configure report service on Oracle Application Server 10g

    i want to know how to install and configure report service on Oracle Application Server 10g Release 3 (10.1.3.1.0)
    Thanks

    the case is that we developed an ADF Application, so we want to deploy it on the latest version of Oracle Application server.
    our application communicate with Oracle reports (run oracle reports from our Application) as there are no Oracle report products for JEE Application.
    so if there are not report service that can run on Oracle Application Server 10g Release 3 (10.1.3.1.0),
    what is the other choices that oracle supports that can help us in this case ???

  • Error while deploying an ear file in the Oracle Application Server

    Hi,
    There was an existing ear deployed in the the oracle application server - 10g. We had to include some customizations so we rebuild the ear file with the new changes and tried redeploying the ear using the EM console. Getting the below error while deploying the same. Any pointers to the same would be helpful.
    Error
    An error occurred when processing the data submitted. Find the appropriate field and enter the correct information as noted next to each field.
    Archive Location - Failed in uploading archive. Invalid archive file: Jar file resourceadapter-rar.rar is missing a standard deployment located at META-INF/ra.xml
    We have not modified anything in the ra.xml nor have touched the resourceadapter-rar.rar

    Hello
    did you configure the startweblogic file as mentioned in the admin guide ?

Maybe you are looking for

  • Publishing to an existing URL

    I currently have a URL and web site for my company and have built a new web site using iWeb. It will be ready to publish this week. My concern is that the search engines will not recognize the newly published site once its up and/or it will drop in t

  • How to create Labview User Interface with buttons?

    Hello, I try to create a user interface, where the TestStand sequencies can be selected one by one not only Test UUT, Single run and run Mainsequence (about 20 buttons needed). I'm playing with the simple UI shipped with TS and can load the sequence

  • F-42 and f-51

    Dear All, What is the difference between F-42 transfer posting and F-51 post with clearing? thanks

  • Getting a Filename

    I have a task to do with Indesign XML workflow. Is there any option for getting a file name to a variable in the corresponding folder for example: "test.xml" the filename "test" needs to be saved in a variable, i.e., any xml file which i placed in th

  • Extensions do NOT work in Safari 5.1

    I recently just purchased 1 password from the mac app store and I downloaded the safari extension so that I could easily sync passwords.. etc.  However I could not install the extension (or any other for that matter) because the safari extension tab