Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Could not find assembly error

by the3factory 4/21/2008 8:35:00 PM
Question:

Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

 


I have Crystal Version 10 w/ the .NET components installed...yet I still receive this error when running a simple .aspx which just contains ReportViewer + ReportSource controls.


Answer1:
When you reference the dll is on the bin directory or in the gac, check the version of the DLL in the GAC. You can always copy the dll into the bin to make sure to know what dll is being called. Hope this helps

Answer2:

Thanks...I copied the dll from:

 c:\program files\common files\crystaldecisions\2.5\managed\crystaldecision.crystalreports.engine.dll

 to my bin directory...

 I get a different error now:

"The located assembly's manifest definition does not match the assembly reference"

I'm going to try using a 2003 .net project instead of a 2005 project to see if that changes anything.


Answer3:
Good, that means the refereced dlls is not the same in your bin directory, you can reference the correct one, look at your web.config for the referenced dll.

Answer4:

I've gotten these assemblies to work:
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

However, where are these stored at? they were not in c:\program files\common files

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>


Answer5:
ps :I also tried creating a .net 1.1 project...it worked, however no images show up.

Answer6:
Seems the version 10.2 Crystal Reports (2.7) stuff comes from Visual Studio.

Answer7:

yup. what you need to do is install crystal report component from the visual studio cd.

you will find the missing dll files

  • CrystalDecisions.ReportAppServer.ClientDoc,
  • CrystalDecisions.Enterprise.Framework,
  • CrystalDecisions.Enterprise.InfoStore

 are now in C:\Program Files\Common Files\Business Objects\2.7\Managed

Copy those dll files to you application bin folder

 

it works for me ;p

 


Answer8:

Hi,

I've checked the directory : C:\Program Files\Common Files\Business Objects\2.7\Managed - I've found the following DDLs:

CrystalDecisions.CrystalReports.Engine
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
CrystalDecisions.ReportSource
CrystalDecisions.Web

But where are these files located:

CrystalDecisions.ReportAppServer.ClientDoc
CrystalDecisions.Enterprise.Framework
CrystalDecisions.Enterprise.InfoStore

Can anyone help?

Thanks in advance!

 


Answer9:

Those three assemblies were located at:

C:\Program Files\Common Files\Crystal Decisions\2.5\managed


Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0