Access Denied Error when installing ASPExec on a Windows 2003 server
Posted on 2007-08-01
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:
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
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.