微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Python共享网络,loadFromRemoteSources

如何解决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 举报,一经查实,本站将立刻删除。