Skip to main content
Known Participant
December 20, 2006
Question

creating directory access denied

  • December 20, 2006
  • 2 replies
  • 214 views
hi guys

i'm trying to create a directory in the host and put a picture inside it. well it works on the local machine, but i got an error when i 've executed the code from teh hostmachine... i got this :
Access to the path 'd:\hosting\feras_80\UsersFiles\testuser is denied.

the error appears in the 2nd line
dim dr as io.directory
dr.createdirectory(server.MapPath("/UserFiles/") & txtUserID.text)
SaveAs (Server.MapPath ("/UsersFiles/imgs/") & sFilename)
anyone can helps?
thx alot
This topic has been closed for replies.

2 replies

Feras_86Author
Known Participant
December 21, 2006
i got it.. thx man :)
Inspiring
December 21, 2006
You need the hosts to set the permissions on the server to allow anoymous
web client to create directorys.

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"Feras_86" <webforumsuser@macromedia.com> wrote in message
news:emapmq$t98$1@forums.macromedia.com...
> hi guys
>
> i'm trying to create a directory in the host and put a picture inside it.
> well
> it works on the local machine, but i got an error when i 've executed the
> code
> from teh hostmachine... i got this :
> Access to the path 'd:\hosting\feras_80\UsersFiles\testuser is denied.
>
> the error appears in the 2nd line
> dim dr as io.directory
> dr.createdirectory(server.MapPath("/UserFiles/") & txtUserID.text)
> SaveAs (Server.MapPath ("/UsersFiles/imgs/") & sFilename)
> anyone can helps?
> thx alot
> Line 229: Text
>