Why does my .NET application crash when run from a network drive?

前端 未结 6 912
陌清茗
陌清茗 2020-11-29 06:37

My .NET application fails when run from a network drive even when the very same executable runs perfectly fine from a local hard drive?

I tried checking for \"Full t

6条回答
  •  不知归路
    2020-11-29 07:16

    This is security built in by microsoft into the .net framework. It's a way of stopping malware to be run locally with full priviliges, so you cannot change this programmatically in the code.

    What you need to do is increase the trust of specific assemblies. You do this in the .NET Framework Configuration (Control Panel->Administrative Tools), and has to be done on each computer.

    As with any security measures, it's a pain-in-the-ass, but will help the world to be less infected etc...

提交回复
热议问题