wshell.run permission denied

Giganews Newsgroups
Subject: wshell.run permission denied
Posted by:  P1 (…@fhri.org)
Date: Thu, 28 Aug 2008

Hey guys,
I'm totally out of my league here, I don't even know how I got stuck
with this problem, it's obviously a webmaster issue and I'm just a lowly
net admin.

The error:

Starts here
8/28/2008 1:39:17 PM
Passed through
Error detected: 70: Permission denied

The script:

<%
response.Expires = 0
dim wshell, url, filename, memberid
on error resume next
Response.Write("Starts here<br/>")

%>
<pre>
<%=now()%>

</pre>
<%

memberid = Request("memberid")
url = Request("url")
filename = "cal"& memberid &".pdf"

set wshell = CreateObject("WScript.Shell")
wshell.run "%comspec% /c c:\htmltools\htmltools.exe -append 0 """& url
&""" ""c:\PDFTemp\" & filename &""" >c:\htmltools\log.txt", 0, TRUE
set wshell = nothing

Response.write "Passed through<br/>"

if err.number <> 0 then
    response.write "Error detected: " & err.number & ": " &
err.Description & "<br/>"
    on error goto 0
    response.end
end if
on error goto 0

Response.write "Run sucessfully<br/>"

Response.Redirect("http://calpdf.domain.com/PDFTemp/" & filename)
%>
<pre>
<%=now()%>

</pre>

IIS and permissions:
The website has Scripts and Executables permissions.
The folder containing the asp script and htmltools.exe have full NTFS
permissions for IIS_WPG, IUSR_, IWAM_.

Some of the commands in the script I put in as part of suggestions found
while researching this problem.

I'm lost, please help? :)

Thanks,
LP

Replies