469,621 Members | 1,678 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,621 developers. It's quick & easy.

Access Denied when trying to access cmd.exe

I am getting an "Access Denied" error when trying to access an
executable in my web directory. I have tried cmd.exe, ftp.exe, even
notepad.exe. I have given everyone, including the anonymous user,
ASPNET user, and NETWORK SERVICE user full control of the entire
directory, but am still getting the error.

Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))

Source Error:

Line 116: strCMD = FtpDir & "cmd.exe /c " & strCMD & " " &
strTempFile
Line 117: Dim oScript As Object = CreateObject("Wscript.Shell")
Line 118: Call oScript.Run(strCMD, 0, True)
Line 119: oScript = Nothing

I've been working on this for days and can find no solutions online or
otherwise. Thanks in advance if anyone can assist.
Oct 9 '08 #1
3 4854
Look in the IIS service, porperties of the web site. There is a dropdown
that allows you to choose "Scripts & Executables" - I think in the first
tab. That should do it.

--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
<wb*****@gmail.comwrote in message
news:e6**********************************@40g2000p rx.googlegroups.com...
>I am getting an "Access Denied" error when trying to access an
executable in my web directory. I have tried cmd.exe, ftp.exe, even
notepad.exe. I have given everyone, including the anonymous user,
ASPNET user, and NETWORK SERVICE user full control of the entire
directory, but am still getting the error.

Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))

Source Error:

Line 116: strCMD = FtpDir & "cmd.exe /c " & strCMD & " " &
strTempFile
Line 117: Dim oScript As Object = CreateObject("Wscript.Shell")
Line 118: Call oScript.Run(strCMD, 0, True)
Line 119: oScript = Nothing

I've been working on this for days and can find no solutions online or
otherwise. Thanks in advance if anyone can assist.

Oct 10 '08 #2
Sorry, I checked that as well, I even added read/write and everyone to
the directories.

On Oct 10, 12:42*am, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
Look in the IIS service, porperties of the web site. *There is a dropdown
that allows you to choose "Scripts & Executables" - I think in the first
tab. *That should do it.

--
Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv<wba b...@gmail.comwrote in message

news:e6**********************************@40g2000p rx.googlegroups.com...
I am getting an "Access Denied" error when trying to access an
executable in my web directory. I have tried cmd.exe, ftp.exe, even
notepad.exe. I have given everyone, including the anonymous user,
ASPNET user, and NETWORK SERVICE user full control of the entire
directory, but am still getting the error.
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
Source Error:
Line 116: * * * *strCMD = FtpDir & "cmd.exe /c " & strCMD & "" &
strTempFile
Line 117: * * * *Dim oScript As Object = CreateObject("Wscript.Shell")
Line 118: * * * *Call oScript.Run(strCMD, 0, True)
Line 119: * * * *oScript = Nothing
I've been working on this for days and can find no solutions online or
otherwise. Thanks in advance if anyone can assist.- Hide quoted text -

- Show quoted text -
Oct 10 '08 #3
I should mention that I'm pretty certain this used to work, is it
possible some GPO was changed that would stop this from working any
longer?

On Oct 10, 9:35*am, wbab...@gmail.com wrote:
Sorry, I checked that as well, I even added read/write and everyone to
the directories.

On Oct 10, 12:42*am, "Anil Gupte/iCinema.com" <anil-l...@icinema.com>
wrote:
Look in the IIS service, porperties of the web site. *There is a dropdown
that allows you to choose "Scripts & Executables" - I think in the first
tab. *That should do it.
--
Anil Guptewww.keeninc.netwww.icinema.comwww.wizo.tv<wba b...@gmail.comwrote in message
news:e6**********************************@40g2000p rx.googlegroups.com...
>I am getting an "Access Denied" error when trying to access an
executable in my web directory. I have tried cmd.exe, ftp.exe, even
notepad.exe. I have given everyone, including the anonymous user,
ASPNET user, and NETWORK SERVICE user full control of the entire
directory, but am still getting the error.
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))
Source Error:
Line 116: * * * *strCMD = FtpDir & "cmd.exe /c " & strCMD &" " &
strTempFile
Line 117: * * * *Dim oScript As Object = CreateObject("Wscript.Shell")
Line 118: * * * *Call oScript.Run(strCMD, 0, True)
Line 119: * * * *oScript = Nothing
I've been working on this for days and can find no solutions online or
otherwise. Thanks in advance if anyone can assist.- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -
Oct 10 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by calfdog | last post: by
3 posts views Thread by jliusolar | last post: by
12 posts views Thread by Ron Weldy | last post: by
3 posts views Thread by David Thielen | last post: by
1 post views Thread by cpajoe2001 | last post: by
8 posts views Thread by Jeremy Ames | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.