Wrox Programmer Forums
|
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 4th, 2006, 03:05 PM
Authorized User
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default Deleting asp files from asp

hello,
i need a way to delete .asp files in the wwwroot/site/
what should i do?
i tried to use the filsesystemobject to do it, but i have the following error :
Microsoft VBScript runtime (0x800A0046)
Permission denied

although i enabled scripts, and iis has anonymous access, what is the solution for this ?
thanks in advance

 
Old April 5th, 2006, 10:53 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Your IIS settings for the directory have to be set to read and write. (Becareful because this can allow ANYONE to read and write to that directory.)

"The one language all programmers understand is profanity."
 
Old April 7th, 2006, 06:09 AM
Authorized User
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default

i have given it all the writes that are possible, even to execute scripts and executables, but still don't work, the same permission denied error.

 
Old April 7th, 2006, 06:32 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you assigned the read / write permission to your IUSR_[yourMachineName] user - you can see this in windows explorer on the security tab for a file or directory (not in the IIS snap-in)?

BTW, unless you really are running executables in your web, I would definitely disable this option.

HTH,

Chris






Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating Asp and Asp.net files Manoah Classic ASP Professional 0 July 24th, 2008 10:41 PM
Deleting Excel Rows using ASP.net (C#) ctranjith General .NET 0 August 3rd, 2005 01:51 AM
Updating/Deleting from SQL using ASP Tee88 Classic ASP Databases 4 May 6th, 2005 11:14 AM
error in deleting,updating and records in asp method Classic ASP Databases 1 May 6th, 2005 10:35 AM
Deleting several records on ASP using checkboxes luisbueno Oracle ASP 1 April 25th, 2005 08:47 PM





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