Python共享网络,loadFromRemoteSources

问题描述

我用pyarmor + nuitka构建我的python代码,所以我得到了exe。与共享网络共享此exe。 但是当exe尝试加载dll(导入clr)时,它会得到

Unhandled Exception: System.IO.FileLoadException: Failed to load the file 'file: // \\ 192.168.1.251 \ MyFolder\ GameMenu \ Python.Runtime.dll' or its integrated code or one of its dependencies. Operation is not supported. (HRESULT returned exception: 0x80131515) ---> System.NotSupportedException: An attempt was made to load an integrated code from a network location that would cause it to be sandBoxed in prevIoUs .NET Framework versions. This .NET Framework version does not enable CAS policy by default,so the installation in question can be dangerous. If this installation is not intended to sandBox the integrated code,please enable the loadFromremoteSources switch. For more information. http://go.microsoft.com/fwlink/?LinkId=155569

但是,当我将所有文件夹复制到桌面上并尝试运行我的exe时,它运行正常。问题是从共享网络加载dll。 谢谢!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)