IIS7 Failed to grant minimum permission requests

前端 未结 9 1911
日久生厌
日久生厌 2020-11-28 06:48

I get this error when I\'m using FileHelpers.dll, but my IIS is set to Full trust level so it should not be that way

That\'s the full stack trace:

           


        
9条回答
  •  抹茶落季
    2020-11-28 07:49

    Old question, but my answer was deleted because i have only posted a link.

    maybe you will get this error: ERROR:

    Could not load file or assembly ‘Microsoft.Practices.EnterpriseLibrary.Configuration.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)

    This error occurs because the default trust level for local machine is Full trust, but in the network share not.

    So to compile your applications remotely you have to: Go to Control Panel ->Adiministrative Tools->Microsoft .NET Framework 2.0 Configuration Open My Computer->Runtime Security Policy ->Machine >Code Groups >All Code>New (right click to appear the menu to select New )

    The URL field in the next figure is the path to the shared folder , in this case, but you can choose Strong Names( for .exe or .dll) etc

    Click Finish and you can compile your app!!

    https://medium.com/@marcoscavaleiro/failed-to-grant-minimum-permission-requests-7245cf694ebd

提交回复
热议问题