Running a .NET application from a file share without code signing

后端 未结 7 1846
挽巷
挽巷 2021-01-01 07:02

The .NET security model throws security errors whenever a .NET exe is run from a file share. The error does not appear when ran from a local drive. Does anyone know of a way

7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-01 07:29

    You can use the .Net configuration wizard to loosen security for the specific Assembly and it's location, this in turn can be deployed through a group policy. You can also use caspol as earlier mentioned.

    The other alternative is to use code access security. There is a brilliant MSDN article here explaining it.

    The third alternative is using clickonce deployment, however this still creates a local instance of the assembly when executed.

提交回复
热议问题