Python Shared Network, loadFromRemoteSources


I build my python code with pyarmor + nuitka so i get exe. Sharing this exe with shared network. But When exe tries to load dll (import clr) it gets

Unhandled Exception: System.IO.FileLoadException: Failed to load the file 'file: // \\ \ 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.

But when i copy all folders to desktop, trying to run my exe, it works fine. The issue is load dll from shared network. Thank you!

asked on Stack Overflow Sep 18, 2020 by Emrexdy

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0