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 1743
夕颜
夕颜 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:01

    My solution is as follows:

    I didn't find a root folder under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files.

    Google told me that it might be a permission issue against current user, then I found I have a current Identity: IIS APPPOOL in the malfunctioning server where the rest of the server has Current Identity: NT AUTHORITY\NETWORK SERVICE.

    Then I changed Current Identity from IIS APPPOOL to NT AUTHORITY\NETWORK SERVICE.

    From here, I found that resetting the web app rebuilds the temporary ASP.NET cache, solving the issue.

提交回复
热议问题