bentonstark / starksoft-aspen

.net / mono security and cryptography library that provides client support for ftps, gnupg, smartcard, and socks / http proxies
106 stars 49 forks source link

gpg binary path issue #32

Closed petereit closed 6 years ago

petereit commented 6 years ago

Getting the following exception when attempting to decrypt a file:

gpg binary path executable invalid or file permissions do not allow access: C:\Program Files (x86)\GNU\GnuPG\pub

bentonstark commented 6 years ago

Are you attempting to run the code from the context of a user on a command line or via something like a web app?

petereit commented 6 years ago

Not a web app. Automated single-user .NET console app.

bentonstark commented 6 years ago

I would first try running the application as an administrator to see if that gives you access to the files (right mouse click your exe and choose Run as Administrator).

petereit commented 6 years ago

It runs gpg.exe as expected. (I get the prompt, "gpg: Go ahead and type your message ...")

bentonstark commented 6 years ago

Ok, so were you able to run your own executable in the same method (as administrator) or did you do that and got the gpg prompt?