Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Topics: Logging Application Block
Dec 28, 2010 at 3:16 PM

Could you help me out, I am getting above mentioned error.





Dec 29, 2010 at 1:04 AM

Check that your referencing the correct version of the Unity assembly; you're probably referencing a lower version or the unsigned version of the assembly (the one from the source code).  So just to be sure, remove the reference and re-add it, making sure the assembly is the one from the entlib installation folder (Program Files\Microsoft Enterprise Library 5.0\bin folder).


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.

Dec 29, 2010 at 7:06 AM

Thanks, I forgot to add unity, configuration dlls.

I have one more question here,

1. Created one categories with name AUDIT.

2. I have two logging torget listeners.

3. One is used for DB logging and another for flat file logging.

My question is,

I want to block flat file listener for right now, i will use it later. Now i will use only DB listener.

Could you please tell me the procedure to do.


Dec 29, 2010 at 7:18 AM

You can set the Flat File Trace Listener's Severity Filter property to Off.

Please create a new thread for a different topic.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.