Error: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

Topics: Data Access Application Block
Jul 31, 2008 at 5:12 PM
I keep getting this error randomly.  To fix the error, I reset the IIS website.  After about 30-60min I'll get this error again. 

Error: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Access is denied.

After I reset the IIS website everything works just fine until this error pops up again.

Any ideas on how to resolve this problem?

Jul 31, 2008 at 5:15 PM
Hi,

If you are hosting a WCF service and you're using impersonation, you may be facing the issue described in http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=29040.

Hope this helps,
Fernando