- Notifications
You must be signed in to change notification settings - Fork752
Closed
Labels
Description
Environment
- Pythonnet version: 2.4.0
- Python version: 3.5.4
- Operating System: Mac OS Sierra 10.12.1
Details
Describe what you were trying to get done.
I'm trying to add the reference of a dll to clr.
The problem is, when trying to add the reference, it throws an error message:
System.Exception: File is blocked (NTFS Security)
The same dll files work with pythonnet correctly in a windows environment.
I've sent the files to the mac from the pc via smb protocol.What commands did you run to trigger this issue?
importclrclr.AddReference(r'TestLibrary.dll')
- If there was a crash, please include the traceback here.
File"/Users/pfsteam/Desktop/XXXX/YYYY/ZZZZ/server/handler.py",line76,insimulator_handlerclr.AddReference(r'TestLibrary.dll')System.Exception:Fileisblocked (NTFSSecurity)atPython.Runtime.CLRModule.AddReference (System.Stringname) [0x00053]in<839f97acd45d4def8bcdb1c7938a79c0>:0at (wrappermanaged-to-native)System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)atSystem.Reflection.MonoMethod.Invoke (System.Objectobj,System.Reflection.BindingFlagsinvokeAttr,System.Reflection.Binderbinder,System.Object[]parameters,System.Globalization.CultureInfoculture) [0x0003b]in<2774478d59ae47bd8b8bfafb23c3364c>:0Processfinishedwithexitcode1