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!

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,

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

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


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


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


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

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

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.