Access Denied Error when installing ASPExec on a Windows 2003 server

Posted on 2007-08-01
Medium Priority
Last Modified: 2008-09-17
I am using a web server with Windows server 2003 and IIS 6.
Our server crashed and we have to reconfigure a new one.
I run on the server a compression program zg.exe, using ASPExec.
I downloaded ASPExec.dll ot c:\util on the server  and registered it using regsvr32.
I am having a security problem that I can not find whatever I tried. I keep getting an access denied error msg.
Here is the piece of code that I set up for isolating this problem:
function CompressFiles(cFileName,FileList)
      Dim objExecutor
      Dim sResult      

      Set objExecutor = Server.CreateObject("ASPExec.Execute")
      objExecutor.Application = "cmd.exe"
      objExecutor.Parameters = "/c c:\Util\zg.exe -add c:\av_sale\av\01_Prologue.mp3 c:\av_sale\av\01_Prologue.zip -N -0"
      objExecutor.ShowWindow = False
      objExecutor.Timeout = 60000 ' wait 1 minute
      sResult = objExecutor.ExecuteWinAppAndWait
      CompressFiles= sResult
end function
 When I call this function, the returned code is 5.
I replaced zg.exe with a simple batch but substituting the statement
      objExecutor.Parameters = "/c c:\Util\test.bat"
(the batch contains just: dir c:\ >c:\av_sale\av\test.txt)
I still get the same error.

I have a very very basic knowledge of computer security. Can anybody show me how to fix this? my dedicated server hosting company claim they can not do anything because they do not support ASPExec.

Please remember, I am pretty certain this is a configuration problem because the same web site code was running fine on a previous server.

Question by:pccosm
  • 3
  • 2
LVL 19

Expert Comment

by:Stephen Manderson
ID: 19611219

Author Comment

ID: 19611446
I did see the solution to these two problems - it is the same - However, I can find on my server how to apply the procedure that is suggested. I guees my knowledge in this area is very limited.
Can you be more explicit? How do I access component services?
I just took control - or trying to - a dedicated server with Windows 2003 and IIs 6
LVL 19

Accepted Solution

Stephen Manderson earned 2000 total points
ID: 19611637
To access component services do the following.

Start, click Control Panel, and then click Performance and Maintenance. Click Administrative Tools, and then double-click Component Services.

Author Comment

ID: 19612269
Thanks. That helped and solved my problem. It might be good idea if you answer me again with your last comment and a reference to the actual solution:

This will help people get quicker to the answer.
LVL 19

Expert Comment

by:Stephen Manderson
ID: 19612320
Its ok anyone looking at this question will see all the posts :) Plus you have already done it for me :P

Glad it helped

Kind Regards

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

Learn about cloud computing and its benefits for small business owners.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

839 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