Could not load file or assembly or one of its dependencies. The system cannot find the file specified.

I am working on a web application.
Attached is the error I am getting with one of my DLL. Can any one suggest me a proper solution for this.

It says - Could not load file or assembly 'NorthernTrust.EnterpriseLibrary.Reporting, Version=3.5.0.1, Culture=neutral, PublicKeyToken=248e358f1ecfdadf' or one of its dependencies. The system cannot find the file specified.


GouthamAnandAsked:
Who is Participating?
 
Todd GerbertConnect With a Mentor IT ConsultantCommented:
The "bitness" of your NorternTrust... assembly does not match your IIS application pool (i.e. one is 32-bit and the other 64-bit).  What version of Windows Server OR IIS?
0
 
wdosanjosCommented:
Has this application always worked and just recently you start having issues?  If that's the case, what has changed in the environment or application?

Also, check the Event Log (Application) for any messages that could lead to the root cause.

0
 
ToxaconCommented:
Use gacutil to install it to global assembly cache.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
GouthamAnandAuthor Commented:
No. This new deployment of my application.
0
 
Carl TawnSystems and Integration DeveloperCommented:
Basically it is missing one of the assemblies that is referenced by the project. How did you deploy it?
0
 
wdosanjosCommented:
1) Verify that your application is set to use the .NET Framework 3.5 application pool on IIS.  (.NET 3.5 is not the default);

2) Verify that all the dependent assemblies have been deployed also.
0
 
ToxaconCommented:
The referenced libraries can also reside in the same folder as the calling assembly or in the Bin folder in web solutions. Do you have the 'NorthernTrust.EnterpriseLibrary.Reporting.dll available at one of these locations?
0
 
GouthamAnandAuthor Commented:
Now I started getting this. This is slightly different to earlier one.

Could not load file or assembly 'NorthernTrust.EnterpriseLibrary.Reporting, Version=3.5.0.1, Culture=neutral, PublicKeyToken=248e358f1ecfdadf' or one of its dependencies. An attempt was made to load a program with an incorrect format.
0
 
nithaiCommented:
Hey, attach your code to find the solution.
0
 
GouthamAnandAuthor Commented:
Thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.