I hosted my application on vertual dedicated server.(windows 2008 r2)
All the crystal reports are running on the local host.but after hosting application, reports are not working.I installed "CRRuntime_64bit_13_0_1" on the server.error message as below.
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.
Please help me to solve this.
Log4net is an error reporting tool and is independent of Crystal Reports.
So, at risk of asking the obvious here but do you have the correct version of the log4net DLL in the Bin folder of your installed app?
Related
Could not load file or assembly 'CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Crystal can be, touchy to deploy and run if it's not your server (e.g. you don't have access to deploy there and possibly make tweaks). If it's your server, not a problem. Go get the Crystal merge modules from sap.com and install them on your server, then you will just need to reference them in your web.config. You may run into other issues with permissions (Crystal in some circumstances uses the C:\Windows\Temp directory to export files which hosted servers will at lot of times prevent you from using, I assume this is a throw back to the fact their codebase dates back to the Windows 3.x era).
I'm going to provide the links to the downloads page at SAP:
http://wiki.scn.sap.com/wiki/pages/viewpage.action?original_fqdn=wiki.sdn.sap.com&pageId=56787567
You're using version 10.2 (which is pretty old, Crystal is pretty good about backwards compatibility so if you're in a pinch you can use newer Crystal DLL's and they should export your reports fine).
So, I've tried installing the Crystal Reports runtime on my server as well as copy all the DLL's from our old server to the new server. I copied my application over, and it's telling me:
Could not load file or assembly 'CrystalDecisions.Enterprise.Framework, version=10.5.3700.0, Culture=neutral, PublicKeyToken=blahblahblah' or one of its dependencies.
How do I get that??? The reference is in the GAC on the old server, but I can't find the DLL for that anywhere.
When you set up a new server, what exactly needs to happen to ready the new web server to be able to display Crystal Reports? I can not believe it is this difficult to accomplish this.
1) This error is occured because of version change of crystal report. Install Crystal Decesion pack 2005 as well as 2008 for 64 bit and 32 bit.
2) Set your DSN 32 bit and 64 bit both.
3) once try with set your application in classic pool.
Failed to load database information. Details: The database DLL crdb_ado.dll could not be loaded. Error in File (filename) Failed to load database information.
I am receiving this error when i try to run a crystal report from my page. on the server I have installed the CRRedist2008_x86 and the dll file is in the business objects folder, but for some reason it is still not loading. I also checked to make sure I have the msvcp60.dll which is also needed but still am unable to run the report.
The server is running Windows Server 2008, has Visual Studio 2005 installed on it (not sure if that makes any difference). The application ran fine on my local machine, but after uploading it to the server, it's not wanting to play nice.
Any suggestions/help is appreciated.
Thank You
You should get Dependency Walker and open the crdb_ado.dll to confirm all the required files are there. Although checking for msvcp60.dll is generally the right idea, I've found that people are often looking for the wrong version of those files OR that other required DLLs are also missing.
Also, be sure the redist you are using matches the version of Crystal Reports you have referenced in your project. There is a difference between using, say Crystal Reports 2008 on top of Visual Studio 2005,, versus using the BUNDLED Crystal Reports that comes with Visual Studio 2005 (Or 2008, or 2010 for that matter.).
In fact, sometimes people don't realize that their .NET projects are referencing the "comes with Visual Studio" edition of Crystal Reports because they happen to have Crystal Reports version <whatever> installed on their PC.
That said, if you are pretty confident your redist of CRRedist2008_x86 matches what you are using, I'd focus on Dependency Walker to see if it is indicating a missing required file for the crdb_ado.dll.
I am getting the following error after deploying my web application to a 2008 server...
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Crystal is not installed on the server but the .dll files are deployed. It works on my local. What file do I need to install on the server to get this to work?
If you installed the merge module with you web application look in the GAC (C:\windows\assembly) to see which version of Crystal is installed then change the crystal reference tags in both your web.config and apsx files (bear in mind if it's a different version some features may not work)
Or if you have a spare license install 10.5 on the server using the server install utility:
https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm
I believe the conventional way to deploy Crystal Report with a .NET program is to set it as a prerequisite in the publish settings and then a .msi will be packaged with the ClickOnce files on the web/network/CD/wtv. When the user runs setup.exe, it will check whether Crystal Report is on the client computer. If not, it runs the Crystal Report .msi. But that will always require admin rights.
My question is, is it possible to package Crystal Report's dlls along with other application's output assemblies so that no explicit install is required? My application makes use of many many components and including a dll with the install is sufficient for most of them. Could I do the same with Crystal Report?
I hate to be the bearer of bad news, but Crystal Reports for Visual Studio .NET is not designed for click-once deployment. Crystal Reports is a native application, and the assemblies you use to deal with the report depend on many non-.NET libraries.
Lots of COM objects that require registration, support DLL's that have to be installed... Licensing information that must be placed somewhere (Crystal Reports has always been big on licensing).
In theory, if your application is running full-trust you could monitor the installation of the Crystal Reports for .NET runtime, and duplicate it in c#, but that is a lot of work, and will be unreliable at best.
Sadly, the final answer is you can't.
You might check out Active Reports, or some of the other pure .NET reporting solutions.
If you are dead-set on doing it yourself, you can monitor the installation of the Crystal Reports runtime to see what files/registry entries/settings it creates/modifies. Alternatively, you can decompile the msi or download and decompile the mst transform file from Crystal Reports. Once you know what it is doing, write something to do it yourself.
I am almost sure that there is a redistributable package of libraries that ships with the final version of Crystal Reports when you buy it (not sure if this package ships with the Visual Studio version).
I'd provide a separate link to the Crystal Redistributable on the installation site and build a check in the ClickOnce app for the presence of the Crystal files.
You can add CR runtime merge module to your click-one MSI package, MSI will take care of merge module installation, It merges crystal report runtime installation files\process to your application click-one package.
https://origin.softwaredownloads.sap.com/public/site/index.html