ASPNET was the User I was referring to, but if full permissions has no effect, I'm not sure that's the problem. The angle I was trying to take was: what's different between the two dll-callers?
The only diffs that I know of (as far as spawning exe's is concerned) are: User account, environment vars, desktop (i.e if called from a Windows Service, the exe will appear on a hidden desktop rather than the normal one). Can anyone else think of other information that is implicitly inherited by child exe's? Right now I think I like your "use a different pgp solution" idea better.. Sorry I couldn't be of more help Micah -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Micah Daniels Sent: Thursday, 15 January 2004 4:26 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] pgp problem from ASP Hi Jade. Thanks for the reply. What priviledges are you referring to? User 'ASPNET'? I gave this user admin priviledges to see if it would help, but it never did. Are there anyother ways of assigning user priviledges? Micah From: "Jade Burton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 12:12 AM Subject: Re: [ADVANCED-DOTNET] pgp problem from ASP > Smells like a permissions issue. Could ASP.NET be using a diff user > account/priviliges to that of your DLL-calling program? As permissions are > passed down through the Process.Start call, PGP might not be able to > read/write certain files/resources, in turn causing everyone's favourite > error: "something went wrong, hate to be you" aka "public key encryption > error". > > Jade > > From: Moderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Behalf Of Micah Daniels > Sent: Thursday, 15 January 2004 12:23 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] pgp problem from ASP > > > Hi.I have been following these emails for a while purely for interest sake, > but now for the first time i need help. Please let there be someone out > there who has experience in solving a problem similar to mine. > > I execute a command line PGP command lines tool (from Networks associates) > in the following segment of C# code: > > string exportpath = ''path to some txt file'; > string PGPUserName= "some pgp user registered on the current machine"; > > Process myProcess = Process.Start("C:\\Program Files\\Network > Associates\\PGPNT\\PGP", "+batchmode +force -e -w -t " + "\"" + exportPath + > "\"" + " " + this.PGPUserName); // > while (!myProcess.HasExited) > { > Thread.Sleep(10); > } > > if (myProcess.ExitCode == 0) > { > exportPath+=".pgp"; > } > else > { > failureReason = "PGP Encryption Failed : Return Code ("+ > myProcess.ExitCode +")"; > return -1; > } > > This code is compiled into a dll. > > When the dll is accessed from a application, everyhting works fine. > However,..when it is acessed from an asp web page, an error code is > retured,.namely 21 known as 'public key encryption error'. > > Anyone have some insight on this problem. > > Thanks > Micah > > =================================== > This list is hosted by DevelopMentor� http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at http://discuss.develop.com > > -- > This message has been scanned for viruses and dangerous content by > MailScanner, and is believed to be clean. > > > -- > This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. > > =================================== > This list is hosted by DevelopMentor� http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
