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
902 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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