Pythonnet Filenotfoundexception: Unable To Find Assembly
I am trying to execute a Python script that uses Python For .Net (https://github.com/pythonnet/pythonnet) to load a C# library called 'Kratos_3.dll' which is in the same folder as
Solution 1:
It turns out that even though I added the path through
sys.path.insert(0,"C:\\dev\\proj_1\\")
it still couldn't find the file because the .dll because Windows was not enabling it to load from "external sources". To fix this:
- Right-click on the .dll
- "Properties"
- Under "General", click "Unblock"
Post a Comment for "Pythonnet Filenotfoundexception: Unable To Find Assembly"