pythonnet dll directory access denied

435 Views Asked by At

Using pythonnet to access some dlls from python and the dlls are not able to access the linux directories no matter what owner or permissions are set to. Just get an access denied message like this.

Access to the path '/tmp/work' is denied.

Seems like it should work. Anyone have a tip on this?

1

There are 1 best solutions below

0
On BEST ANSWER

In using the release build of the .Net dlls it was only giving the vague permission denied error message (checking the return .error variable). That was not the problem at all although I spend a lot of time trying to fix it. Per the tip from denfromufa I changed to use the debug build of the .Net dll and it throws a proper exception. I was missing a reference. So the lesson for me is it is better to use the debug build of .Net dlls if you run them with pythonnet.