wshell.run permission denied

This is a discussion on wshell.run permission denied within the Inetserver forums in Microsoft Tools category; 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 ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 03:06 PM
P1
Guest
 
Default wshell.run permission denied

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
Reply With Quote
  #2  
Old 08-28-2008, 05:40 PM
Anthony Jones
Guest
 
Default Re: wshell.run permission denied


"P1" <p1@fhri.org> wrote in message
news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
> 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?


Comment out the on error resume next line.

Then examine the line number in the error returned (make sure you have Send
Detailed Error messages turned on).

Also does the IUSR_ account have access to the c:\htmltools folder?

Is the page accessed anonymously?


--
Anthony Jones - MVP ASP/ASP.NET


Reply With Quote
  #3  
Old 08-28-2008, 05:40 PM
Anthony Jones
Guest
 
Default Re: wshell.run permission denied


"P1" <p1@fhri.org> wrote in message
news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
> 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?


Comment out the on error resume next line.

Then examine the line number in the error returned (make sure you have Send
Detailed Error messages turned on).

Also does the IUSR_ account have access to the c:\htmltools folder?

Is the page accessed anonymously?


--
Anthony Jones - MVP ASP/ASP.NET


Reply With Quote
  #4  
Old 08-28-2008, 07:02 PM
P1
Guest
 
Default Re: wshell.run permission denied

Anthony Jones wrote:
> "P1" <p1@fhri.org> wrote in message
> news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
>> 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?

>
> Comment out the on error resume next line.
>
> Then examine the line number in the error returned (make sure you have Send
> Detailed Error messages turned on).
>
> Also does the IUSR_ account have access to the c:\htmltools folder?
>
> Is the page accessed anonymously?
>
>


Removing the line you suggested points to line 19, which starts with
wshell.run

Full error:

Starts here
8/28/2008 5:55:09 PM
Microsoft VBScript runtime error '800a0046'
Permission denied
/groupCalPDF.asp, line 19

Yes, the IUSR_ account has full access to the c:\htmltools folder,
explicitly defined and propagated down to child objects.
The page is accessed anonymously.
Reply With Quote
  #5  
Old 08-28-2008, 07:02 PM
P1
Guest
 
Default Re: wshell.run permission denied

Anthony Jones wrote:
> "P1" <p1@fhri.org> wrote in message
> news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
>> 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?

>
> Comment out the on error resume next line.
>
> Then examine the line number in the error returned (make sure you have Send
> Detailed Error messages turned on).
>
> Also does the IUSR_ account have access to the c:\htmltools folder?
>
> Is the page accessed anonymously?
>
>


Removing the line you suggested points to line 19, which starts with
wshell.run

Full error:

Starts here
8/28/2008 5:55:09 PM
Microsoft VBScript runtime error '800a0046'
Permission denied
/groupCalPDF.asp, line 19

Yes, the IUSR_ account has full access to the c:\htmltools folder,
explicitly defined and propagated down to child objects.
The page is accessed anonymously.
Reply With Quote
  #6  
Old 08-29-2008, 05:06 AM
Anthony Jones
Guest
 
Default Re: wshell.run permission denied

"P1" <p1@fhri.org> wrote in message
news:l8Gtk.7358$lU5.4742@newsread1.mlpsca01.us.to. verio.net...
> Anthony Jones wrote:
> > "P1" <p1@fhri.org> wrote in message
> > news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
> >> 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?

> >
> > Comment out the on error resume next line.
> >
> > Then examine the line number in the error returned (make sure you have

Send
> > Detailed Error messages turned on).
> >
> > Also does the IUSR_ account have access to the c:\htmltools folder?
> >
> > Is the page accessed anonymously?
> >
> >

>
> Removing the line you suggested points to line 19, which starts with
> wshell.run
>
> Full error:
>
> Starts here
> 8/28/2008 5:55:09 PM
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /groupCalPDF.asp, line 19
>
> Yes, the IUSR_ account has full access to the c:\htmltools folder,
> explicitly defined and propagated down to child objects.
> The page is accessed anonymously.


Do you have response buffering on that is the default and recommended
setting?
And line 19 is ...?


--
Anthony Jones - MVP ASP/ASP.NET


Reply With Quote
  #7  
Old 08-29-2008, 05:06 AM
Anthony Jones
Guest
 
Default Re: wshell.run permission denied

"P1" <p1@fhri.org> wrote in message
news:l8Gtk.7358$lU5.4742@newsread1.mlpsca01.us.to. verio.net...
> Anthony Jones wrote:
> > "P1" <p1@fhri.org> wrote in message
> > news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
> >> 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?

> >
> > Comment out the on error resume next line.
> >
> > Then examine the line number in the error returned (make sure you have

Send
> > Detailed Error messages turned on).
> >
> > Also does the IUSR_ account have access to the c:\htmltools folder?
> >
> > Is the page accessed anonymously?
> >
> >

>
> Removing the line you suggested points to line 19, which starts with
> wshell.run
>
> Full error:
>
> Starts here
> 8/28/2008 5:55:09 PM
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /groupCalPDF.asp, line 19
>
> Yes, the IUSR_ account has full access to the c:\htmltools folder,
> explicitly defined and propagated down to child objects.
> The page is accessed anonymously.


Do you have response buffering on that is the default and recommended
setting?
And line 19 is ...?


--
Anthony Jones - MVP ASP/ASP.NET


Reply With Quote
  #8  
Old 08-29-2008, 08:45 AM
Pablo A. Allois
Guest
 
Default Re: wshell.run permission denied

Use ProcMon from SysInternals (now MS) and monitor the access to the folder.
You will see an access denied, ProcMon will tell you what user is having the
Access Denied.


Please, take care, do not leave this application too much time on a
production server.


Saludos!

"P1" <p1@fhri.org> wrote in message
news:l8Gtk.7358$lU5.4742@newsread1.mlpsca01.us.to. verio.net...
> Anthony Jones wrote:
>> "P1" <p1@fhri.org> wrote in message
>> news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
>>> 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?

>>
>> Comment out the on error resume next line.
>>
>> Then examine the line number in the error returned (make sure you have
>> Send
>> Detailed Error messages turned on).
>>
>> Also does the IUSR_ account have access to the c:\htmltools folder?
>>
>> Is the page accessed anonymously?
>>
>>

>
> Removing the line you suggested points to line 19, which starts with
> wshell.run
>
> Full error:
>
> Starts here
> 8/28/2008 5:55:09 PM
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /groupCalPDF.asp, line 19
>
> Yes, the IUSR_ account has full access to the c:\htmltools folder,
> explicitly defined and propagated down to child objects.
> The page is accessed anonymously.



Reply With Quote
  #9  
Old 08-29-2008, 08:45 AM
Pablo A. Allois
Guest
 
Default Re: wshell.run permission denied

Use ProcMon from SysInternals (now MS) and monitor the access to the folder.
You will see an access denied, ProcMon will tell you what user is having the
Access Denied.


Please, take care, do not leave this application too much time on a
production server.


Saludos!

"P1" <p1@fhri.org> wrote in message
news:l8Gtk.7358$lU5.4742@newsread1.mlpsca01.us.to. verio.net...
> Anthony Jones wrote:
>> "P1" <p1@fhri.org> wrote in message
>> news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
>>> 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?

>>
>> Comment out the on error resume next line.
>>
>> Then examine the line number in the error returned (make sure you have
>> Send
>> Detailed Error messages turned on).
>>
>> Also does the IUSR_ account have access to the c:\htmltools folder?
>>
>> Is the page accessed anonymously?
>>
>>

>
> Removing the line you suggested points to line 19, which starts with
> wshell.run
>
> Full error:
>
> Starts here
> 8/28/2008 5:55:09 PM
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /groupCalPDF.asp, line 19
>
> Yes, the IUSR_ account has full access to the c:\htmltools folder,
> explicitly defined and propagated down to child objects.
> The page is accessed anonymously.



Reply With Quote
  #10  
Old 08-29-2008, 01:00 PM
P1
Guest
 
Default Re: wshell.run permission denied

Anthony Jones wrote:
> "P1" <p1@fhri.org> wrote in message
> news:l8Gtk.7358$lU5.4742@newsread1.mlpsca01.us.to. verio.net...
>> Anthony Jones wrote:
>>> "P1" <p1@fhri.org> wrote in message
>>> news:TGCtk.7351$lU5.226@newsread1.mlpsca01.us.to.v erio.net...
>>>> 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?
>>> Comment out the on error resume next line.
>>>
>>> Then examine the line number in the error returned (make sure you have

> Send
>>> Detailed Error messages turned on).
>>>
>>> Also does the IUSR_ account have access to the c:\htmltools folder?
>>>
>>> Is the page accessed anonymously?
>>>
>>>

>> Removing the line you suggested points to line 19, which starts with
>> wshell.run
>>
>> Full error:
>>
>> Starts here
>> 8/28/2008 5:55:09 PM
>> Microsoft VBScript runtime error '800a0046'
>> Permission denied
>> /groupCalPDF.asp, line 19
>>
>> Yes, the IUSR_ account has full access to the c:\htmltools folder,
>> explicitly defined and propagated down to child objects.
>> The page is accessed anonymously.

>
> Do you have response buffering on that is the default and recommended
> setting?
> And line 19 is ...?
>
>


I'm not sure what response buffering is and where it's set?
Line 19 is the one that starts with wshell.run in the script I included
in my original post.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:09 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.