Crystal Report error when trying to build a website with visual studio - visual-studio-2010

I am trying to run a build of a website locally on my pc using visual studio and while it builds fine, after I logon to my website which runs crystal reports I get the following error:
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
I have tried using VS 2008 and 2010. I have got the SAP build for both 08 and 10. I tried using 64 and 32 bit versions of each build. Nothing works and I keep getting this error. I am running this on a 64 bit Windows 7 if that helps. Any ideas?

be sure that you configure your project in x86.
Go to your application project, right click, and select "Properties"
On the Build tab, find the Platform Target combo box. It probably says, "Any CPU". Change this to x86 .

Related

Visual Studio Cordova App, can't run debugger - Could not locate the appxrecipe file

If I create a brand new Cordova project (JavaScript or TypeScript) and try to debug on Ripple or on the local machine I get an error during build that says "Could not locate the appxrecipe file."
I googled it and nothing comes up. What is this file and how does it get generated? Shouldn't it be generated when I create the project?
I've already lost an entire day to this, running repairs on visual studio and trying things that had no effect. Frustrating!
This took a while to figure out but it seems that the version of node.js that would get installed with Visual Studio was too old (0.10.x). When I installed the x64 version of node.js from the node website, it installed a 64 bit version which also wouldn't work with Cordova in Visual Studio.
The answer was to install the 32bit version of node.js (node-v5.1.0-x86.msi) available from their website. Now everything compiles correctly!
I was also stucked with the issue but my problem was little bit different. I wanted to build a project for Windows 10 Mobile platform.
It was really weird because everytime when I tried to build a project from CLI with ionic build windows, the build was successul. But it had been throwing the error about appxrecipe file while building with Visual Studio again and again.
Then I noticed that everytime I open a project in Visual Studio (2015, Community Edition) there is one change when you open your confix.xml file in Visual Studio editor - the change was that Windows Target Version was set to 8.1 again. I tried to change it to Windows 10 again, save it and build but the error was still there.
I have solved it with installation of Microsoft Emulator for Windows 10 Mobile and it works like a charm now. Maybe this information could be helpful for somebody...

Force install of Crystal Reports 32-bit runtime

I have a Winforms application that is compiled for 32-bit (x86), which has a setup project that also targets x86.
I have SAP Crystal Reports, version for Visual Studio (version 13.0.13) installed on my development machine and in the setup project, under dependencies I have Crystal Reports Runtime Engine for .Net Framework option checked. Also Windows Installer 3.1 is checked as a dependency.
Installing on 32 bit machines give no problem, but when I install on a 64-bit machine for some reason the installer installs the 64-bit version of the Crystal Reports Runtime Engine. The application then gives an exception when you try print a report because it needs the 32-bit version installed. If I manually go install the 32-bit version of Crystal Reports runtime then the reports work correctly, but I want the install of Crystal Reports to work correctly from the application installation.
So my question here is two-fold: 1) Does anyone know whether this issue I am having is a Windows Installer issue or is it specifically a Crystal Reports issue? 2) How can I specify in the Visual Studio setup project that the 32-bit version of the Crystal Reports runtime should always be installed, even when installing on a 64-bit machine.
Below is the process that need to be done. Please see the link for more details.
Resolution
Find the Product.xml file in the bootstrapper folder:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0
Comment out the below BypassIf entry to install the 32bit version CRRuntime redist on the target machine
<!-- ByPass if the Processor is not x86 -->
<BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel" />

SideBySide Application Error

I've got an application that has been built with TideSDK.
When trying to run the application on the machine that it was packaged with (runs Windows 8) the application works no problem. When I try to run this program on a Windows Vista machine that I've got, I get a
"The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail."
error.
Here's the event viewer information:
Activation context generation failed for "C:\Users[blah blah blah]\Program.exe". Dependent Assembly Microsoft.VC80.CRT, processorArchitecture="x86", publicKeyToken="1fc8b3b9a1e18e3", type="win32", version="8.0.50727.4053" could not be found. Please use sxstrace.exe for detailed diagnosis.
Some solutions say to update windows or reinstall visual c++ redist.
Do these errors signify a needed windows update or visual c++ redist reinstallation?
Thanks in advance!
Vince
Hi The MSVC Redistibutable files are outdated in your system. You need to install "Microsoft Visual Studio 2005 Service Pack 1" Redistributables.
they can be found here: http://www.microsoft.com/en-us/download/details.aspx?id=14431

Crystal report compatible with windows 7 64 bit

i am having a application made in visual studio 2005 which uses crystal report version 10.2.3600.0 . i am using CRRedist2005_x86.msi... it works fine on all xp machines... but does not work on windows 7 64 bit machine...
Can u assist me which crystal report viewer is compatible with windows 7 64 bit
[Additional information added from subsequent question:]
on my client machine it throws the following error
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information. "

Crystal Reports Runtime for VS on Windows 7 Throws an Error

It seems to be working fine on my development machine, or the Windows XP test machines, but I'm running into problems on the Windows 7 test machines.
After that, I get a normal crash error:
************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See
Exception.InnerException for details. The error is: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. --->
System.TypeInitializationException: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. --->
CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while
attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.
at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
at Processing.LogTag..ctor()
at Processing.frmPrint.InitializeComponent()
at Processing.frmPrint..ctor()
--- End of inner exception stack trace ---
Their website is of course a nightmare to find anything...
Note: It is Windows 7 64bit, but I'm already running the program in 32bit mode.
Update:
So I figured out that crystal reports has an issue where the x64 version doesn't have any initializers, and so trying to initialize it in my program is causing an error.
I have verified that if I uninstall the x64 version, and install the x86 32bit version, the program works fine. I've read that some people had sucess just running the program in 32bit mode, but for whatever reason that didn't work for me.
I'm leaving the question open for a little bit, in hopes that someone has figured out how to get it to initialize the 64 bit version, because that's what automatically installs from the click once setup.
The newest version of Crystal Reports for Visual Studio 2010 version 13.0.1 (x64) will work if the program is also run in x64 mode. This means that VS can be set to compile for Any CPU.
http://www.sdn.sap.com/irj/boc/support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8
first change your platform target of your project as x86 then compile again and install this setup in your windows 7 64 bit pc (C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\CRRedist2005_x86.msi) and try to open your reports.
We fixed this issue by setting the application pool advanced setting Enable 32-Bit Applications to true
This error could also occur if you are running a 64 bit desktop/server & you don't have a 64 bit runtime.You'll need to know which version of runtime to install. As always google is your best friend to search for locations of the runtime

Resources