Last post Apr 19, 2011 05:49 AM by firstname.lastname@example.org
Jul 15, 2008 11:18 AM|nisarkhan|LINK
i spent lot of my time trying to figure out what cause this error and still cluless
i have web project and dal project and i have reference in both dal and web project the following dlls and the dll is physicall in the bin folder.
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=18.104.22.168, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.
Feb 17, 2009 09:23 AM|ewitkows|LINK
Hi everyone, just trying to resurrect the above post, as I am getting the same issue, and cant find much of anything on the Internet.
The Enterprise Library is working 99% of the time for my application. In particular, we are employing the Logging Application Block. However, periodically (let's say once every 2 weeks) we receive the following error details on the yellow screen:
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=22.214.171.124, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Access is denied.
If we bounce the IIS App Pool, the issue is resolved and were back to writing records to the Logging database. Any ideas on why we would receive an "Access is denied" error message? The particular exception that is thrown is "FileLoadException".
Apr 22, 2009 09:15 AM|ewitkows|LINK
Sorry for the bump, but Im still struggling with this issue..
Apr 22, 2009 09:24 AM|nisarkhan|LINK
get rid of 'Microsoft.Practices.EnterpriseLibrary' thats what i did
Oct 20, 2009 06:08 PM|cauger|LINK
Here is a post that helped me.
If you are like me.. you are using the wrong dll's from the C:\EntLib3Src dir and not C:\Program Files\Microsoft Enterprise Library 3.1 - May 2007\ dir
That clear the issue up for me... below is the link to some other usefull information.
Dec 26, 2009 11:50 PM|dvdgzzrll|LINK
don't take my advice, but what I did is deleted all the assemblies. it appears that VS 2010 automatically installs newer assemblies and asp.net 4.0 ...
Apr 19, 2011 05:49 AMemail@example.com|LINK
well i found that I had used wrong assembly reference in my web config, just check that, then rebuild your project hope this will work fine.
i createda a one dataaccess libraray project in which i was using the enterprise library data block, when I add the reference in my website i didnt updae the webconfig with the version which is pointing in the project plus i match the dll form the gac. with
I found that my web config inthe website was not updated that why i was getting this error, there is no other issue, we just need to add the right reference of dll, inthe app config or project and the web config of website.