Solved

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

Posted on 2011-02-10
10
900 Views
Last Modified: 2013-11-08
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.


0
Comment
Question by:GouthamAnand
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 23

Expert Comment

by:wdosanjos
Comment Utility
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
 
LVL 8

Expert Comment

by:Toxacon
Comment Utility
Use gacutil to install it to global assembly cache.
0
 

Author Comment

by:GouthamAnand
Comment Utility
No. This new deployment of my application.
0
 
LVL 52

Expert Comment

by:Carl Tawn
Comment Utility
Basically it is missing one of the assemblies that is referenced by the project. How did you deploy it?
0
 
LVL 23

Expert Comment

by:wdosanjos
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 8

Expert Comment

by:Toxacon
Comment Utility
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
 

Author Comment

by:GouthamAnand
Comment Utility
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
 
LVL 33

Accepted Solution

by:
Todd Gerbert earned 500 total points
Comment Utility
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
 

Expert Comment

by:nithai
Comment Utility
Hey, attach your code to find the solution.
0
 

Author Closing Comment

by:GouthamAnand
Comment Utility
Thanks a lot
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now