Solved

ASPExec

Posted on 2001-07-14
4
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 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