Appcrash on SetDataSource of Crystal Report - crystal-reports

I'm using Visual Studio 10 with Crystal Reports for .Net installed. My development environment is a 64 bit pc with Windows 8 on. Everything works fine on my development pc but when I install the app on the client pc I get an Appcrash windows error on the SetDataSource of the reportclass. The only info on the crash is the KernelBase.dll is the fault module. When I look at Windows Event viewer it says there was a filenotfoundexception, but doesnt give the name of the file it is looking for.
The client pc is a 32 bit windows 7 pc. I installed the latest 32 bit runtime files on it.
Can you please help me to figure out what the problem is?
Thanks

Bit late, but for those who encounter this common problem. yourApp.exe.config contains this line
`<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
change it to
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
and problem is solved

I know this thread is old, but I ran into a similar problem (appcrash in kernelbase.dll) when upgrading my project to VS 2017 with Crystal Reports. Got the crash on the SetDataSource call. Added the line to my app.config file and the problem was solved. Hope this can help someone else as this solution really helped me!

Related

Crystal Reports XI compatibility with Windows 2012

I have a Crystal Reports application that is hosted in IIS on a windows 2003 32 bit Server. The Crystal reports version in use is Crystal Reports XI Release 2 SP 2.
We are migrating our applications to Windows 2012 64 Bit Servers. I am not sure if this version will work support on 2012 server.
Can anyone please tell me if it will work on 2012? If not, is there any workaround?
While it's not supported, you may have luck with updating your Crystal to service pack 6.
See this page for links/details on doing so:
https://blogs.sap.com/2011/06/07/where-did-all-the-crystal-reports-xi-r1-and-r2-fixes-go/
We faced two scenarios using Windows 2012 64 bit Server and Crystal Reports 10.2.0.
In the first one, everything is working fine until now.
In a second one, I was working fine too, except when someone would try to save the report as an Excel file. It would crash the IIS ASP.Net process. Something on KERNEL32.dll, but I don't have the full message in English to post.
We tried to format the server and reinstall Windows 2012 Server, but it was useless.
We researched about it and all the references and possible solutions ended up at an orientation to install Crystal Reports 13.0.12.
We installed the newer version and everything is working fine.
Please note the the version numbers are a bit confusing. I always check the version number in windows "programs and resources".

Visual Studio 2003 Crystal reports

An unhandled exception has occurred in a component in your application.
Cannot find KeycodeV2.dll, or invalid key code.
Visual studio 2003 64 bit Win 7 (On printing CR).
We solved a similar issue.
Environment running Win 7 64bit, application generated by VS2003 (.NET 1.1).
Solution was uninstall Crystal Reports, run CCleaner, reinstall Crystal Reports.
We understand the error occurred because something was wrong with Crystal installation or there was a conflict with an other installation.
Note: i think i should add a comment instead of post it as an answer, but i have not enough reputation to add a comment.
EDITED: btw, there is a similar unanswered post:
Cannot find KeycodeV2.dll, or invalid keycode
And i did some research and found some people purposing similar explanation (problem with the instalation).

eclipse crash every couple of minutes, need help

Eclipse Helios installed on windows 7 pro 64 bit system, it crash once every couple of minutes, it used to work fine, but recently get worse, I am afraid that I may have some configuration error, but it appears the solution from google didn't apply to me.
Need help, thanks.
Note:
Error message like this:
java
Maby you hit this bug in 64-bit JRE? Try this workaround.

why the Pyqt application implemented and worked well in VISTA can not run in Windows XP?

all, I implemented an application in my laptop (vista) with PyQt and it worked quite well. But if I want to run it in a desktop of Windows XP system, an error occured! It says the configuration was wrong. What is the reason (by this i mean does it matter which system I used??)and how to solve it please? thanks!!!
More info would be useful, but this sounds familiar to a problem I had when freezing apps using py2exe. Is this your exact error message?:
The application has failed to start because the application configuration is incorrect.
Reinstalling the application may fix the problem.
I managed to get around this by installing the Microsoft Visual C++ 2008 SP1 Redistributable Package from http://download.microsoft.com.
This was an error I had when using py2exe. After switching over to PyInstaller, which bundles the runtimes during freezing, the problems went away without having to install the C++ runtimes on an XP machine. There may even be a way to bundle the runtimes using py2exe, but I've not looked.

Crystal Reports error when deployed..Could not load file or assembly 'log4net

Please help. I have a web application that was built in VS2010 and we are using the CR plugin for 2010 and everything works perfect on our local machines. When we go to deploy the web application to Server 2008 the application runs fine until we try to get to a report. When we get to a report we receive...
Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
We have installed the CR2010 runtimes and the file log4net.dll version 1.2.10.0 is in the GAC so we are not referencing it in the application. When we add it as a reference we get this error no matter where we are in the application, not just on the report pages. Please help!
I received the same error message after accidently installing the x86 version of the crystal reports redist on a x64 machine.
Installing the correct x64 redist fixed the problem - http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip
We just ran into the same problem and it turned out to not (in our case) be the version of the Crystal Reports redist (we installed the 32 bit versions on our 64 bit machines. The way we were able to fix the problem was to
Navigate to your virtual directory Application Pool -> Advanced Settings -> Set Enable 32-Bit Applications to True
and changed the managed pipeline mode from Classic to Integrated. After that we no longer got errors of the missing log4net dll.
We also had the same issue with the 64-bit redistributable installed. In our case, we set the "Enable 32 Bit Applications" setting to FALSE in the advanced Application Pool properties and that resolved the issue.
If you have a x86 development machine and your web server is a 64-bit machine, you may be running into the problem discussed here:
http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/546059a6-7179-4027-8f16-822ac6dc189a/
Visual Studio is automatically deploying a 32-bit log4net.dll into the 64-bit web server, even if you don't have it referenced in your project. Just delete the log4net.dll from your bin directory once deployment has finished because it's not actually required by the CR runtime to work.
For me I had a VB Application project and under Compile options, I had "Any CPU" selected for Target CPU and I also had the "Prefer 32-bit" checked. When the compiled app ran on a 64 bit machine, which only had the x64 runtime installed it could crash with this error, because it tried running as a 32 bit app and wanted the 32 bit runtime. Unchecking this option and recompiling made it work correctly.
Install Crystal Reports for Visual studio Runtime engine for .NET Framework 64 bit
Solved my problems.
I have 2 NLB 2008 R2 Servers, my IISs are configured to run in x32.
In one server I have installed x64 and x32 SAP redist and I have the error, in second server only the x32 and works.
To get the first server work I uninstalled all versions and reinstalled only x32, but the server start work only after a reboot.
Bye
In my case I had the error while developing with Visual Studio 2022. I did what the other answers here say, installed Runtime 64-bit, because my machine is 64 bit, and then:
(in Visual Studio) Project Debug Properties > Web > Servers > Change Bitness to x64 (using IIS Express)