Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 30th, 2006, 10:05 PM
Registered User
 
Join Date: Apr 2006
Location: Syndey, NSW, Australia.
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>" _


Reply With Quote
  #2 (permalink)  
Old April 30th, 2006, 10:25 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
  #3 (permalink)  
Old April 30th, 2006, 10:25 PM
Registered User
 
Join Date: Apr 2006
Location: Syndey, NSW, Australia.
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.

Reply With Quote
  #4 (permalink)  
Old April 30th, 2006, 10:47 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



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


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