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
903 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
ID: 34866134
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
ID: 34866161
Use gacutil to install it to global assembly cache.
0
 

Author Comment

by:GouthamAnand
ID: 34866191
No. This new deployment of my application.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 52

Expert Comment

by:Carl Tawn
ID: 34866215
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
ID: 34866238
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
 
LVL 8

Expert Comment

by:Toxacon
ID: 34866378
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
ID: 34866795
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
ID: 34875436
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
ID: 34892726
Hey, attach your code to find the solution.
0
 

Author Closing Comment

by:GouthamAnand
ID: 34939188
Thanks a lot
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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