SAP Crystal reports (Failed to load database information) - c#

favorite
There is a problem i have been facing for couple of days. The problem is that i have developed C# Winform application using windows 7 professional sp1,mysql5.5 and SAP crystal report. When i deploy... and install it on the client machine then if the application finds windows 7 professional sp1 on client machine the reports are displayed very well in the application but if it finds (other than windows 7 sp1) professional on the client machine it gives error "Failed to load database information. bla bla {GUID}.rpt file" while displaying or printing. The application developed is not working on other than (Windows 7 professional sp1).
Deploying includes packages. .NET frame work 4.0 , Run time Crystal report Engine , Mysql 5.5 and VS C++ Redistributable.
Developer Machine has. Windows 7 professional sp1, Visual Studio 2010 , SAP Crystal Report for VS 2010, MYSQL Server 5.5

your application EXE file cannot stand alone to running it, the EXE file need the [app_name].exe.config in the same directory so the application can run and load the crystal report successfully.
so these is my conclusion:
the app.exe.config is all in one package which cannot be separated with the EXE file.
the supporting component such as dll files, app.exe.config etc CANNOT be combined into the EXE file.
You can find more in following Link
Try this also:
Add the following section to the config file:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
The attribute will be required to view reports based on ADO.NET objects

I had this error and lost many time to look up, searching and try till since when I install Crystal Service Pack 39 (32 bit) and It was resolved.
I think you can try to install the last service pack of SAP Crystal report.

Related

Successfully run a C# project on client machine with proper functioning Crystal Reports?

I made my project in C# Visual Studio 2017 using .Net Framework 4.7 and SQL Server 2008. Now I tried to run my project in the client machine which has Windows 10 installed on it. After installing I ran the .exe file, all my functions are running smoothly except my Crystal Reports Viewer.
You need to install SAP runtime for Crystal reports on the client machine
You should have install SQL server on your client machine to make the database working similarly you are required to download the client tool for SAP report. So instal Crystal Report Runtime for client machine and it will let you open your reports on your client machine without any error.
Thanks everyone for your answers but I solved it , the issue was in version of Crystal report as it needed CR V13.0.25.134 for 64 bit but I was using CR V13.0.26 , so yeah I made it through. Thanks again everyone for your time.

The document has not been opened - Crystal report

I have some crystal reports on a website. They are working fine on my local machine. I'm using Crystal Reports version 13.0.3500.0
The test environment it is on another server, Windows 2008 R2, 64 bit operating system.
The problem is that when on the test environment I want to use a crsytal report, I get the following error: The document has not been opened
I spent some time already to figure it out what can be the problem, but without any success. I'm using the same DLL-s as in my local machine.
I checked and the folder where I have the report has all the rights.
Can you please advise?
if you are using IIS go to the application pool select your web site Click on Advanced Settings on the right side Set 'enable 32-bit application ' true (crystal report runtime engine for .net 32-bit had to be installed)
I was getting this error before I installed Crystal Reports Runtime (21) on my server.
Here is an article where you can find download links etc.

Microsoft.ReportViewer : How to upgrade Version from 8 to 11

I have developed an c# desktop app on Visual Studio 2013 and Microsoft Sql server 2012. When i deploy this app on my client system which has sql server 2008, app is running correctly but reports are not working. It throws exception:
Could find the file or assembly Microsoft.ReportViewer.Common V 11.0.0.0
When i see the assembly it has V 8.0.0.0. My question is how to upgrade this to V 11 without installing Sql server 2012 ? Is there any way to copy the new version files in assembly ?
Yes, it is possible. There is a runtime available for the report viewer.
You need to download and install the following two files:
Microsoft System CLR Types for Microsoft SQL Server 2012 (x86, x64)
Microsoft Report Viewer 2012 Runtime
(Don't mind that the first file has "SQL Server 2012" in its name. It's just a tiny library with a scary name required by the Report Viewer Runtime. It won't actually install SQL Server 2012. More details can be found in the "System Requirements" section of the Report Viewer Runtime link.)

Crystal Reports version Issue

Hi I have developed windows app using c# to load the crystal reports dynamically from the code. In my development machine Crystal reports versions "10.5.3700.0" and "11.0.3300.0" installed. While building the app, by default 10.5.3700.0 version selected to my project while selecting the references of (CrystalDecisions.CrystalReports.Engine.dll,CrystalDecisions.ReportSource.dll,CrystalDecisions.Shared.dll,CrystalDecisions.Web.dll) and It works fine in my Dev server. If I moved the same exe file to another server, there only 11.0.3300.0 version installed. It was throwing could not load assembly version error. How do I build my application with 11.0.3300.0 ver and make it work in other server.
Please help me out ..
Thank you
Uninstall the version 10.5.3700.0 from your computer and use only 11.0.3300.0 everywhere.
I had many issues like that with Crystal Report. I finally change to ITextSharp to create my PDF file. Much easier.

Crystal Reports in ClickOnce deployment

My application needs to print a Crystal Reports report. It does not show a preview, just takes two parameters and shows a print dialog to set the printer. It works fine on computers that have Crystal Reports installed, but I do not have a way to enforce clients have it already installed.
I have read in various places that adding the ClickOnce prerequisite "SAP Crystal Reports Runtime Engine for .NET Framework" would allow the required Crystal Reports libraries to be registered on the client. When installing the application on the client, it does download the runtime, and installs the runtime, but the application fails to install stating that various CrystalDecisions and CrystalReports assemblies must be registered in GAC.
The first is CrystalDecisions.ReportAppServer.CommonObjectModel. If I add a reference to this in the project and redeploy, then it just gives another message about another assembly. I literally did this 15 times, and never got a seamless install.
What am I missing? I followed this guide from the SAP website (zipped, 2.2 MB, contains a Microsoft Compiled HTML Help file, crnet_dg_2010_en.chm).
I had this problem: for Click-Once applications, you must download and install the 32-bit version of the Crystal Reports Runtime on the client regardless of the client computer's architecture. I ended up installing both the 32-bit and the 64-bit using the MSIs provided on SAP's site to cover all bases and make the GAC error to go away. Afterwards, everything ran smoothly.
Download and install the MSIs (not the executable) from here
FOR CLICK ONCE DEPLOYMENT
In addition to making SAP Crystal Reports Runtime a prerequisite, you need to modify the product.xml file on the development machine. This file is located in: {Program Files}\Microsoft SDKs\Windows\v*.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0\
Find the following line and comment it out:
<BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
Now, re-publish your solution and the setup should install both runtimes on 64-bit machines.
If the above solution didn't work try this,
Go into your project Properties.
Go to the Publish tab.
Click the Application Files button.
Change Publish Status from Prerequisites(auto) to Exclude any file with CrystalDecisions or BusinessObjects in the name.
Click OK
Rebuild your application, then republish it to your site or file share to be installed by your clients.
I found it in this location:
C:\Program Files (x86)\SAP BusinessObjects\BootStrapper\Packages\Crystal Reports for .NET Framework 4.0
C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages

Categories