urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

Last post 10-20-2009 6:08 PM by cauger. 4 replies.

Sort Posts:

  • urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

    07-15-2008, 11:18 AM
    • Contributor
      2,317 point Contributor
    • nisarkhan
    • Member since 10-31-2005, 5:55 PM
    • Planet Earth
    • Posts 1,361

    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.

    Microsoft.Practices.EnterpriseLibrary.Caching.dll
    Microsoft.Practices.EnterpriseLibrary.Caching.xml
    Microsoft.Practices.EnterpriseLibrary.Common.dll
    Microsoft.Practices.EnterpriseLibrary.Data.dll
    Microsoft.Practices.EnterpriseLibrary.Data.xml
    Microsoft.Practices.ObjectBuilder.dll
    Microsoft.Practices.ObjectBuilder.xml

     

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

     Error Information
     Name  Value
    Build Version 3.00.00 Build 1
    Server  
    UserID  
    Source daab
    Exception Type System.IO.FileLoadException
    Message Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied.
    StackTrace    at daab.LoginUserInfo_DA.GetLoginUserInfo(String userId)
       at Model.LoginUserInfo.GetLoginUserInfo(String UserId)
       at Global.Session_Start(Object sender, EventArgs e)
       at System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e)
       at System.Web.SessionState.SessionStateModule.CompleteAcquireState()
       at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
       at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    TargetSite System.Data.IDataReader GetLoginUserInfo(System.String)

    Its all about coding!
    --------------------------
    Don't forget to click "Mark as Answer" on the post(s) that helped you.
  • Re: urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

    02-17-2009, 9:23 AM
    • Member
      316 point Member
    • ewitkows
    • Member since 06-15-2006, 5:58 PM
    • Northeastern PA
    • Posts 104

    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=4.0.0.0, 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".

    Thanks

    Web 2.0 is to the Internet what the
    telephone is to talk radio
  • Re: urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

    04-22-2009, 9:15 AM
    • Member
      316 point Member
    • ewitkows
    • Member since 06-15-2006, 5:58 PM
    • Northeastern PA
    • Posts 104

    Sorry for the bump, but Im still struggling with this issue..

    Web 2.0 is to the Internet what the
    telephone is to talk radio
  • Re: urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

    04-22-2009, 9:24 AM
    Answer
    • Contributor
      2,317 point Contributor
    • nisarkhan
    • Member since 10-31-2005, 5:55 PM
    • Planet Earth
    • Posts 1,361

    get rid of 'Microsoft.Practices.EnterpriseLibrary' thats what i did

     good luck.

    Its all about coding!
    --------------------------
    Don't forget to click "Mark as Answer" on the post(s) that helped you.
  • Re: urgent: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=2.0.0.0

    10-20-2009, 6:08 PM
    • Member
      2 point Member
    • cauger
    • Member since 10-20-2009, 6:05 PM
    • Posts 1

    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.

    Cheers. 

    http://blogs.msdn.com/tomholl/archive/2007/04/19/avoiding-configuration-pitfalls-with-incompatible-copies-of-enterprise-library.aspx

Page 1 of 1 (5 items)