Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 30th, 2006, 10:05 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default (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>" _


 
Old April 30th, 2006, 10:25 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

What about directory level permissions. have you addressed these?

Wind is your friend
Matt
 
Old April 30th, 2006, 10:25 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old April 30th, 2006, 10:47 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied zah_amir Classic ASP Databases 1 January 24th, 2006 11:45 PM
Permission denied tksarun Classic ASP Components 0 March 11th, 2005 03:01 AM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
Permission Denied einstein Linux 1 December 10th, 2003 09:49 AM





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