Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Reports Assembly Deployment on Appharbor

When deploying a new version of my application to Appharbor that uses the Crystal Reports assembly: CrystalDecisions.CrystalReports.Engine I receive the following error message in the appharbor deployment log:

ResolveAssemblyReferences:
Primary reference "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0,     Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL".
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. 
Could not locate the assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL". 
Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. 

I've set "Copy Local" to True in the assembly reference in VS & the DLL exists in the project \BIN directory.

Do I need create a local (non GAC) copy of the DLL and then reference it in the project? If so how does one do this without the GAC version still being referenced?

Or am I doing something wrong with the deploy?

Thanks in advance,

Chris

like image 751
user1198587 Avatar asked Feb 09 '12 01:02

user1198587


1 Answers

You should add the dll to local /lib folder that you push along with your code. The simplest way to ensure that you're referencing the correct dll is to remove the original from the GAC and then make sure that your code works.

like image 156
friism Avatar answered Sep 30 '22 11:09

friism