Last post Oct 22, 2013 03:52 PM by esalvatore
Aug 07, 2009 05:29 PM|dwainew|LINK
I'm really frustrated. This should be so easy, but it's not. I've followed docs, copied the Crystal runtime MSI that comes with VS2008 and installed it on the server (2003 X86 .NET 2,3,3.5). I also tried creating a WebSetup project and pushing that out,
Everything works on my ASP.NET project but Crystal reports. App is throwing this error (among others):
***** Error Type: System.IO.FileLoadException
***** Error Message: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
but this exact assembly appears in the GAC (MSIL). Why is it not being referenced correctly?
This seems to be a pretty common issue based on the number of web hits on the error, but every solution I've found either points me back to the already applied installs or to the SAP site to install NON VS crystal redistributables that I'm not licensed
Any help would be appreciated.
VS 2008 crystal report basic
Crystal Redistributable Package
Aug 08, 2009 02:38 AM|nijhawan.saurabh|LINK
You got to add it's reference explicitly in the bin folder.
Right click on BIN, add reference , and select CrystalDecisions.CrystalReports.Engine
Is it working now?
Aug 10, 2009 11:17 AM|dwainew|LINK
I think you're on to something. Although the reference was there (otherwise I could not have built the project due to dependencies), it was pointing to c:\program files\business objects.....
While most of the other crystal references were to c:\windows\assembly\.... (don't know if that's relevant)
However, removing and then trying to add a reference to the c:\assembly... location isn't giving me joy. selecting the proper assembly doesn't fill in the assembly name in the "file" text box and then clicking OK just resets the GAC file listing. Can
I manually enter the path, and if so, what's the best way to build it?
Also, I was under the impression that even with a reference the CLR looks in different locations if an assembly isn't found, including the directory of the exe, and finally the GAC. If this is true, would not a non-existant reference on the server finally
resort to the GAC and find it?
Thanks for your help.
Aug 10, 2009 03:50 PM|nijhawan.saurabh|LINK
First of all, are you able to run your application now?
Aug 10, 2009 03:51 PM|dwainew|LINK
Thanks, this was the answer. Sorry for not reporting this in my initial response. Copying the referenced assemblies to the bin folder worked.
However, my original qustion is still burning in my brain. Shouldn't the required dependency have been found if it IS in the GAC?
I'm quite baffled how a MSIL assembly in the GAC was being ignored by the CLR!
(btw, I had one more layer of error/fix after this. the crystal runtime was creating temp report files in c:\windows\Temp and giving "access denied" errors. Since this is an NTLM authenticated app, I had to give appropriate groups read/write to this system
Oct 22, 2013 03:52 PM|esalvatore|LINK
went i ejecute the program on my computer it work correctly, but went i transfer the aplicacion to an iss server y dont work.
a send me the same error of:
what could be the problem, sorry i am new in aspx
thansk!! for the help