Crystal Report - Load Report Failed . System.Runtime.InteropServices.COMException: The document has not been opened - crystal-reports

My Application (WEBAPI with Crystal Reports in Visual Studio 2019) runs fine in my local machine. However, when i deploy it to the test server. I am getting the below error when i run an API in the test environment. Test server has SAP Crystal Reports Runtime Engine 32 Bit Installed.
Error Details :
Load report failed.
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: The document has not been opened.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.get_ReportAppServer()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.get_ReportAppServer()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---

Related

crystal reports not work in client machine with "error '713' Application-defined or object-defined error"

I have a Crystal 8.5 Report in a VB6 application.
The crystal report not run on client machine and get error
"Run-time error '713' Application-defined or object-defined error".
But the crystal report work on programmer machine.
how to run the crystal report successfully on client machine ?
With Thanks.
Crystal Reports is a separate control (OCX) file that needs to be packaged together with your application (EXE) because your client doesn't have it installed on his machine. That's why you need to create an installation package.
Have you tried packaging the application in the form of an installation kit with the "Package and Deployment Wizard" in your Visual Studio installation? That should include all dependencies necessary to run on client machines.

How to get more information about Microsoft C++ exception

I am running a very old app written in VB6 and working with crystal reports.
The apps worked great but since last windows 10 update, the crystal reports returns me an error. I debugged the app with IDA and i see this exception:
751804C2: Microsoft C++ exception (etc.code e06d7363, tid 2680)
This exception is only shown when debugging with IDA. If i launch the app manually, i just get a crystal reports error.
What should i do in order to get more informations about this exception ?
I tried to run program step by step in IDA: I just see this exception fired in kernelBase.dll, but i don't really know if exception is raising in this module or if this module just catch the exception...
Thanks

Sap Crystal Report load fail

Error : crystal report load fail(after long time of loading)
I developed c# app contain sap crystal report and it doesn't work on another machine ..
Single tip I installed sap crystal report runtime 32bit
Tools I used in development :
.netframework 4
Crystal report runtime 64bit
Sql server 2014
Thank you I hope you will help me !
I suggest add your report ro your current working project if you are using vs 2010 :
Some errors comes up load report failed:
First: check report path.
Secode: crystal report need to log in into your database working.

SAP Crystal Reports for Visual Studio 2013 do not work in IIS 7.5

I am using Crystal Reports for Visual Studio 2013. The reports work fine on my local computer and in Visual Studio on the production server.
When I deploy them in IIS 7.5 I am getting the following error:
Failed to open the connection. ReportName
3400_4400_{A861BA52-167D-4EAF-AAAF-32B2FB34FFAA}.rpt
Operating System: Windows Server 2008 R2 Enterprise;
System Type: 64-bit Operating System;
Database: MySQL;
I copied the aspnet_clients folder in the wwwroot folder and in the application folder.
Any help would be appreciated.
Thank you.
There is 2 things which may cause this issue,
Are you installed the Crystal report runtime? if no, then here is
link1, link2. You can choose 64 bit option.
If you installed CR-runtime, then crystal report does not have connect to sqlserver. So for this, if you able to check your local crystal report with prod sqlconnection, check that and still you have issue, means you are not give sql server credential to crystal report at run-time. Check this link.
Crystal Report throws 'Failed to open the connection.' only on postback
http://www.codeproject.com/Questions/667950/crystal-reports-connection-to-sql-server-database
http://aspalliance.com/532_Understanding_the_Login_Failed_Error_in_Crystal_Reports.3
I have some updates!!! I can't believe this was the issue....so frustrating!!!...
On my production server I only created a User DNS...which worked fine with Visual Studio...but not with IIS. After I created a System DNS the report worked fine in IIS as well...

Crystal Report 9.2

I am getting the following error when we add the Crystal Report Engine dll. The Crystal Report version we are using is V9.2. Can I get the correct code to open Crystal Report RPT file in Crystal Report Viewer?
'C:\WINDOWS\assembly\GAC\CrystalDecisions.CrystalReports.Engine\9.2.3300.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll' is attempting managed execution inside OS Loader lock. Do not attempt
to run managed code inside a DllMain or image initialization function
since doing so can cause the application to hang.
In application, if user tries to open a crystal report file. The PF Usgae goes high and Server almost hangs. Is the above error causing the server to Hang?
To solve this problem I had to install the Crystal Report Runtime Engine for .NET Framework 4.0, on our server. The Engine was downloaded from link: http://businessobjects.com/jump/xi/crvs2010/.
While stepping through the code in debug mode in Visual Studio 2010 the message above was displayed. I supressed it in Visual Studio 2010. Under the menu
Debug > Exceptions > Managed Debugging Assistants
I then located LoaderLock and unchecked the Thrown checkbox.