Solved

ASPExec

Posted on 2001-07-14
4
271 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
Comment Utility
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
Comment Utility
Permissions are fine, this is not the problem, thanks anyway

Dave
0
 
LVL 19

Author Comment

by:daveamour
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 information …
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…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now