Could not load file or assembly or one of its dependencies. Access is denied. The issue is random, but after it happens once, it continues

后端 未结 20 1649
夕颜
夕颜 2020-12-02 09:32

I have found plenty of information out there about this error: \'ERROR: Could not load file or assembly \'*.dll\' or one of its dependencies. Access is denied.’ But i haven

相关标签:
20条回答
  • 2020-12-02 10:23

    Go to IIS -> Application Pool -> Advance Settings -> Enable 32-bit Applications

    0 讨论(0)
  • 2020-12-02 10:25

    In my case it was due to the Access Protection feature of my anti-virus (McAfee). It was obviously blocking access to this file, as of such the error.

    I disabled it and the solution ran. You might want to check any utility application you might have running that could be affecting access to some files.

    0 讨论(0)
  • 2020-12-02 10:26

    I got this error running from VS. Turned out I'd opened a solution without running Visual Studio as admin. Closing Visual studio down and running it again as admin then rebuilding solved this for me.

    Hope that helps someone.

    0 讨论(0)
  • 2020-12-02 10:27

    If you still facing the issue try this:

    Open your IIS Manager -> Application Pools -> select your app pool -> Advance Setting -> Under 'Process Model' set 'Load User Profile' setting as True

    0 讨论(0)
  • 2020-12-02 10:27

    I had the same issue, fixed by rebuild and redeploy ALL Dependents Dll files

    0 讨论(0)
  • 2020-12-02 10:27

    For me, the following hack worked; Go to IIS -> Application Pools -> Advance Settings -> Process Model -> Identity Changed from Built-in Account (ApplicationPoolIdentity) to Custom Account (My Domain User)

    0 讨论(0)
提交回复
热议问题