Running “partially trusted” .NET assemblies from a network share

后端 未结 4 761
执念已碎
执念已碎 2021-01-11 14:37

When I try to run a .NET assembly (boo.exe) from a network share (mapped to a drive), it fails since it\'s only partially trusted:

Unhandled Exc         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-11 15:28

    Take a look at the 'caspol.exe' program (provided with .NET runtimes). You will have to do this on the machine you are trying to run the application from. I wasn't able to 'mark' and assembly (probably just me). However, using caspol and setting up the proper permission for my app, LocalIntranet_Zone, fix my similar issue.

    I have heard (but haven't tried it yet), that .NET 3.5 sp1 removed this tighten security requirement (not allowing .NET assemblies to reside on a share by default).

提交回复
热议问题