Solved

ASPExec

Posted on 2001-07-14
4
298 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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