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
901 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
 
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
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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

17 Experts available now in Live!

Get 1:1 Help Now