p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Basics (http://p2p.wrox.com/forumdisplay.php?f=61)
-   -   (0x800A0046) Permission denied,not IIS permission! (http://p2p.wrox.com/showthread.php?t=41923)

David Hay April 30th, 2006 10:05 PM

(0x800A0046) Permission denied,not IIS permission!
 
Hi,

I've made this quick and a lttle dirty asp script to output a list of folder contents as xml using FSO. I'm getting a Microsoft VBScript runtime (0x800A0046)Permission denied error (oddly on the last line I included which is just adding to a local string) but I'm running local IIS and all the permissions are good. It's driving me crazy! It worked on Friday and it still works for sub directories with the same permissions.

Thanks in advance,
Dave


<%@ Language=VBScript %>
<%
Dim path, output_str

output_str = "<?xml version=""1.0"" encoding=""iso-8859-1""?>" & vbcrlf & "<contents>"

directory=Request.QueryString("folder")

if (directory<>"") then
    path = Server.MapPath("/Admin/"&directory&"/")
else
    path = Server.MapPath("/Admin/")
end If

ListFolderContents(path)

output_str=output_str & vbcrlf & "</contents>"

response.Write(output_str)

sub ListFolderContents(path)

     dim fs, folder, file, item, url

     set fs = CreateObject("Scripting.FileSystemObject")
     set folder = fs.GetFolder(path)

    'Display the target folder and info.
    output_str = output_str & vbcrlf & "<folder>" _



mat41 April 30th, 2006 10:25 PM

What about directory level permissions. have you addressed these?

Wind is your friend
Matt

David Hay April 30th, 2006 10:25 PM

Fixed already. It wasn't fixable with the usual, right click/properties/security settings. I had to go into IIS and run the permissions wizard on the folder.

Thanks anyway.


mat41 April 30th, 2006 10:47 PM

interesting, me and the permissions wizard have never meet. Glad you fixed your problem.

I see you are in Sydney. Me Kent Street in the city, you?

Wind is your friend
Matt


All times are GMT -4. The time now is 12:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.