Access Denied Error when installing ASPExec on a Windows 2003 server

Posted on 2007-08-01
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\ -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
    LVL 19

    Expert Comment

    by:Stephen Manderson

    Author Comment

    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

    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

    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
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Integrate social media with email signatures

    Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

    On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    761 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

    10 Experts available now in Live!

    Get 1:1 Help Now