To add folder in server thru' browser

P

piyush

i m trying to create a folder in the web server thru browser. i have
used a text box and a button in text box user wud give the name of
folder. i m tracking the path bystrPath =
Server.mapPath(Request.ApllicationPath) + "\\" + txtFolder.txt. and ten
trying to create a folder by Directory.CreateDirectory(strPath) but i m
getting an error : System.UnauthorizedAccessException: Access to the
path "d:\inetpub\wwwroot\piyush0604\piyush" is denied
help me out,
bye ,
piyush
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top