Could Not Load File Or Assembly Crystaldecisions Crystalreports Engine Dll

Posted on  by
  1. Could Not Load File Or Assembly Crystal Decisions Crystal Reports Engine Dll
  2. Could Not Load File Or Assembly 'crystaldecisions.crystalreports.engine.dll'

2020腾讯云10周年活动,优惠非常大!(领取2860元代金券),
地址:https://cloud.tencent.com/act/cps/redirect?redirect=1040

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
入口地址:https://www.aliyun.com/minisite/goods

Methods to Solve the Crystaldecisions.crystalreports.engine.dll Errors link ATTENTION! Before starting the installation, the Crystaldecisions.crystalreports.engine.dll file needs to be downloaded. If you have not downloaded it, download the file before continuing with the installation steps. Oct 22, 2013. Sep 03, 2013. Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version 10.5.3700.0, culture=neutral, PublicKeyToken=blahblah' or one of its dependencies. The system cannot find the file specified. Of course the runtimes are installed, but for some reason our application can't recognize those DLLs. Now the app could not generate reports on BOTH my local dev machine running on VS+IISExpress, and the server running on IIS. It always throw this error: System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.Shared, Version=13.0.3500.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies.

we have an application written in .NET 4.0 which uses this SAP Crystal Reports. While the same build (x86) is working perfectly OK in Windows 2003/2008 (both x86/x64) with .NET 4.0 framework installed (x86) and CrystalReports runtimes installed (donwladed from SAP pages http://scn.sap.com/docs/DOC-7824) using the 13.0.1.x (32bit_13_0_1.msi).

When the same stuff is installed in MS 2012 server (x64), there is already .NET framework 4.5 pre-installed, thus I was not able to install .NET 4.0, however it looks like it's backwards compatible, because the application is working properly, with exception of the Crystal Reports part, where the application throws an exception.

Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version 10.5.3700.0, culture=neutral, PublicKeyToken=blahblah' or one of its dependencies. The system cannot find the file specified.

Of course the runtimes are installed, but for some reason our application can't recognize those DLLs. Personally I don't think it's a build issue as it works properly with same configuration in 2003/2008 server.

We have there only release version installed, so no debugging options are available, nor VS is installed.

Basically we're just performing some tests if the application works properly in 2012 server, but this issue seems impossible to solve. I've spent hours on Google to no avail. So any idea what to check is highly appreciated :)

Thanks Tomas

Edit

Solution: to install older 2008 runtimes.
Root cause: On our build machine we have both runtimes still installed (we need to support older versions as well). In proj files the CR assemblies are not referenced version specific, just by the name. So during the build process the first lowest matching assembly from GAC was used and hence the need to have the CR 2008 installed as well. Solution is to reference the 3rd party assemblies in project files also by version to force the usage of newer ones.

.net-4.0x86crystal-reports-2010windows-server-2012

Not this questionedited May 16 '13 at 9:37 asked May 15 '13 at 12:44 TomKyblik 31 1 1 5 Ok, solved it. By using 'gacutil /lr' I realized that CR used for build were for VS 2008. Installing older runtimes solved this issue. – TomKyblik May 16 '13 at 8:10

3 Answers
3

We ran into the same issue, however in our project the version was specified. Also our project was not strong named. Strong naming the assemblies would make this a non issue.

.csproj before

Recommend:asp.net - Could not load file or assembly 'Microsoft.Windows.Design.Extensibility'

i played with adding LINQ2SQL to the project and adding Entity Framework.. but removed them. Now when i try to deploy to my server, running it i am getting this error.. and i can't find a way to fix it ! I never used this assembly.. but i s

Could Not Load File Or Assembly Crystal Decisions Crystal Reports Engine Dll

Notice the SpecificVersion is set to false. Switching this to true might of solved the issue, we did not try that.

The hint path was either not found or was the older version. If it was not found then it would grab the first Crystal dll found in the GAC which is the 10.5 version.

.csproj after

This forces the build against the correct version.



this answer answered Dec 4 '13 at 19:29 Chuck Conway 12.5k 10 40 86

Another solution would have been to upgrade to Crystal Reports for Visual Studio, which is compatible with VS2010+. If you want to be able to edit the reports in recent Visual Studios, this is the way to go. Your solution of installing the older runtime solves the problem without changing the solution, whereas the newer crystal install requires upgrading all the reports in the solution.


Could Not Load File Or Assembly 'crystaldecisions.crystalreports.engine.dll'


this answer answered Jan 5 '15 at 5:57 kristianp 2,615 17 33

i solved a shit assembley error now

first only unistall pacakge using nuget package second is install again using nuget package

and the last is published and upload to the VPS and enjoy it


File
this answer answered Oct 3 '16 at 7:47 Persiax 1 5

Recommend:windows 8 - Unable to launch Visual studio 2012: Could not load file or assembly

is uninstalls all programs but leaves your files more or less intact. I've been going through and reinstalling everything, and I've found that I can no longer launch visual studio 2012. I've done a complete reinstall and i've also removed t