Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic 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 November 21st, 2004, 06:00 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default Permisson Denied (urgent)

Hii All,
I have the following code
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject ")
filepath1=server.mappath("test.pdf")

set f=fs.GetFile(filepath1)
f.Copy "new_test.pdf",false
set f=nothing
set fs=nothing
%>
I am getting following error
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/vinod_yadav1919/myfile.asp, line 8

At the same time i have checked the permision (read/write) ,
Anyone can tell me "how to set these permission,If you have time then plz tell me step by step or any link to help me
Thanks In Advance
:)


vinod
__________________
Cheers :)

vinod
 
Old November 21st, 2004, 08:53 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

For what user account did you set the permissions, and to what folder?

I think this:

f.Copy "new_test.pdf",false

will give you problems. I think by not specifying a path to the file you want to copy to, the file will be copied to the "current" directory, which is probably your Windows or System32 directory....


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old November 22nd, 2004, 02:13 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi Imar,
 That's Great answer.
 Now it's working correctly.
Thanks Again.
Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
Acess denied prafullaborade XML 2 May 22nd, 2008 09:55 AM
access is denied shanwaj ASP.NET 1.0 and 1.1 Basics 0 December 28th, 2007 03:04 AM
authorization denied COM+ pevl Pro VB Databases 2 July 8th, 2006 09:02 PM
Permission Denied hamidmq Javascript How-To 2 March 10th, 2005 09:41 AM
please.....urgent....."access denied error while s Ramakrishna General .NET 2 October 12th, 2004 12:19 AM





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