Crystal reports not working after upgrading .net framework - c#

i have recently upgrade my project's framework from 3.5 to 4.5. Then i changed application pool version accordingly and now crystal reports are not working. it give no errors but report is blank. it was working fine earlier with .Net CLR version v2. Here i have attached the screenshots of application pool settings and a report i get now

Which version of crystal report you are using?
AS Crystal 2011 and 2013 do not come with any SDK included in their installs, so you will you have to download and install the latest Crystal for VS software to work with reports in VS 2010 or VS 2012 and .NET Framework 4.5.
Or you will have to install a service pack for Crystal 13. Atleast SP9 is needed to run report in latest framework. Please check link given below -
http://scn.sap.com/docs/DOC-7824

We've had the same problem:
Cause: when .Net got upgraded to 4.6 on the server the Crystal Report engine looked for the folder ../aspnet_client/system_web/4_6_1055 which doesn't exist. The report page was trying to reference .js and .css files from the non-existent folder, and the broken .js link prevented the page load from completing.
Solution: copy folder ../4_0_30319/.. (or whatever your latest folder is) and rename to ../4_6_1055/.. (or your current .Net version). The files are unchanged since this is a .Net upgrade, not a Crystal Reports upgrade.
To check if you have this problem: open developer tools in your browser and look for broken .js and .css links.

Related

Install sap crystal report as prerequiste in clickonce deployment

I have a client WPF which uses crystal reports. For now in client machine I have to install separately the crystal reports and then the app. Is there a way to attach it with the app installation?
I tried to add this as a perquisite in publish properties but it gives error during publish as it can't find on the local machine under Crystal Reports for .NET Framework 4.0 folder.
Here is my take on this:
Step 1: Install SAP crystal runtime from here. Make sure you download both 32 and 64 bit msi of correct version, in my case it was 13.0.12, in your case it could be different, so be sure before you download.
Step 2: Once download put the both 32 and 64 bit msi under sdk directory. Default location would be: C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0
Step 3: Go to publish properties of the project, select application perquisite, check mark SAP Crystal Reports Runtime Engine, and also choose download prerequisite from same location as my application.
Step 4: Right click the project and publish, you will see now crystal report installation included in your once click app.
Hope this helps.

Installing Crystal Reports runtime with InstallShield 2013 LE

I am trying to make a setup for my program by using InstallShield 2013 LE and I am running it from within VS 2012. I have already downloaded and installed .NET 4.5 as one of the prerequisites under Specify Application Data -> Redistributables.
My application has reports that I made by installing CRforVS_redist_install_64bit_13_0_8 from the site http://scn.sap.com/docs/DOC-7824.
The reports and program run well. I know that I need to include the crystal reports runtime as part of my setup for deployment to other computers.
Under Specify Application Data -> Redistributables, I see Crystal Reports Basic for Visual Studio 2008. How do I add the right runtime version that I need to my program?
Also for some reason, I am unable to download even the 2008 version shown.
InstallShield Limited edition lacks the prereq editor found in Professional and above. You can download an eval and throw it on a VM and use it there. Correct the PRQ file and copy it back to your ISLE machine along with needed content.
Here's a basic tutorial on how to author PRQs:
Using InstallShield 12 to Install .NET Framework 3.0

Crystal Report gives error when publishing the project

I want to publish my Project Created in Visual Studio 2010. it was OK,before i add the Crystal Report, but after adding crystal report , it is not possible to publish it. this is the error i get
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_64bit_13_0_3.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' can not be located on disk. See Help for more information.
The install location for prerequisites has not been set to 'component vendor's web site' and the file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0_3.msi' in item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' can not be located on disk. See Help for more information.
I have installed Crystal Report for Visual Studio 2010. but i don't have CRRuntime_32bit_13_0_3.msi and CRRuntime_64bit_13_0_3.msi in
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0
what should i do?
You can download those files from here
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
And check out this link, maybe it solves your problem
Crystal reports problem

Adding References of Crystal Report DLLs

My OS is Windows 7 x64. Running VS Professional 2012. I'm working in a software written in C# and developed for .NET Framework 4.0 that uses Crystal Report. I've installed Crystal Report for developers version 13.0.5 on the machine.
I want to copy the required DLLs of Crystal Report to the output folder of the project. The purpose is to pack them with the installer so that the PC where the software will be installed won't be required to install Crystal Report.
I created a folder called DLLs and put the required Crystal Report DLLs in that folder. Then in the C# project's References node in solution explorer, I've added the DLLs located in DLLs folder. When I look in the added DLL's Property > Path, surprisingly I find that the path holds the path of the DLL from where I copied (C:\Program Files... instead of D:\Work...).
Why is this happening? How can I add reference to the copied DLL, not the original DLL?
Short Answer: Crystal Reports wont work without installing on client machines.
What you can do is doing some research about what does the Crystal Reports Installer does and doit yourself whithin you application. See here
Other sources: here and here, or google it.
Regards

Could not load file or assembly CrystalDecisions.VSDesigner Version=10.5.3700.0

i have a web application with visual studio 2008 and crystal report 2008 and all thing is fine
BUT
when i installed SAP crystal report 2010 , my be it crash with CR 2008
when i run my APP i get this message
Could not load file or assembly CrystalDecisions.VSDesigner Version=10.5.3700.0
i do some solutions
1 - i open web.config file and delete the row of CrystalDecisions.VSDesigner - my app run fine but reports not working
when i add this row again my app not running
please . i do alot of research about this problems but no HOPE
thanks for ur time
In Vs 2003 the Runtime of Crystal reports was bundled in the program setup when you create the installer and installed, but with vs 2005 and later you have to install it.
I think here you can find the msi
http://scn.sap.com/docs/DOC-27917
The dll version of the Runtime that ships with vs is different from the various version of Crystal reports, so you have to install the right one
There's a good chance that installing the new version of Crystal Reports wiped your previous assemblies out of the GAC and replaced them with a newer version. From SAP:
As each version of Crystal Reports has its' own specific runtime which
must be correctly deployed, it is critical that the deployed runtime
be in agreement with the Crystal Reports assemblies for Visual Studio
.NET referenced in your project.
Your error looks like it is trying to find a DLL from Crystal Reports 10.5 and as the above link suggests, it does not like having differing versions of crystal reports running side by side.

Categories