soukoku / PgpSharp

Some pgp stuff in C#
MIT License
14 stars 5 forks source link

"Cannot start process because a file name has not been provided" on Server 2012 #9

Closed cgtyoder closed 8 years ago

cgtyoder commented 8 years ago

I have no problems using this lib on Windows 10 (Pro x64), but when I try to run my exe on Windows Server 2012 (Std, x64), I get an Exception when callingGnuPGTool.ProcessData() with detail, "Cannot start process because a file name has not been provided." This is with the exact same executable/dll, copied to a different machine. Any idea why this is happening?

cgtyoder commented 8 years ago

Doing a little more debugging - looks like it's failing at RedirectedProcess.cs:60, when executing _process.Start() - full Exeception:

Error: System.InvalidOperationException: Cannot start process because a file name has not been provided.

cgtyoder commented 8 years ago

I figured it out - I did not have GnuPG installed on the Server 2012, but it was coincidentally installed on my W10 box (I was under the impression it was looking for gpg2.exe in the cwd! but it wasn't - it was getting it from