Solved

ASPExec

Posted on 2001-07-14
4
306 Views
Last Modified: 2010-05-18
I am using ASPExec to run a command line pgp type program to encrypt a file.  This works fine on Windows 2000 Advanced Server but not when I run it on another server running Windows 2000 Server.

The code is as follows

Executor.Application = "c:\gnupgp\gpg --yes -a -e -r daveamour@hotmail.com c:\gnupgp\test.txt"

This works fine if I type it in at the server but when run from an ASP page I get the following error...

gpg: c:\gnupgp\test.asc: can't create: No such file or directory gpg: c:\gnupgp\test.txt: encryption failed: file create error

Any ideas anyone?

Cheers

Dave

0
Comment
Question by:daveamour
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
phuctran earned 50 total points
ID: 6283137
I think that is because of permission.
Try to change c:\gnupgp to c:\temp to see if it work. (c:\temp has everyone permission).
Give the directory c:\gnupg permission (IUSR_).

0
 
LVL 19

Author Comment

by:daveamour
ID: 6283143
Permissions are fine, this is not the problem, thanks anyway

Dave
0
 
LVL 19

Author Comment

by:daveamour
ID: 6283166
My apologies ph

I had already set file permissions to what I thought they should be but after having tried setting Full control to Everyone this worked fine.  This doesnt need to be done on Windows 2000 Advanced Server though so I guess its a MS bug

Any better security solutions would be appreciated by anyone.

Cheers

Dave
0
 
LVL 3

Expert Comment

by:phuctran
ID: 6283210
I think there is something wrong.  Your directory c:\gnupgp should have IUSR_MachineName permission (full) -- don't give everyone permission.  And usually, only directories under your web directory automatically has that permission.  You should check it again.  If it does not need to be done on Windows 2000 Advanced Server then I think you should have a look about permission on all your directories.
:) I will check mine tomorrow.

0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Passing Parameter to Stored Procedure 4 32
Code Manager | Snippits 2 65
PHP encrypted string and passing to a ASP Page 12 47
JQuery DataTable Functionality 8 19
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question