File Access

U

Uriah Piddle

Hi Gang,

In my asp.net 3.5 website hosted on a shared web server, I need to serve
files from a virtual folder within the root folder on the host machine for
downloading. When I test the download functionality over the web, I keep
getting an Access Denied error. I am using Forms authentication. I'm not
sure if I can or want to implement impersonation.

I have come across places that show you how to implement downloading
functionality and they never even mention file access issues so I have to
suspect that I might have some setting goofed up.

Please help. I started googling this early yesterday thinking it would be
easy one but now I'm frazzled. Thanks.

Steve
 
U

Uriah Piddle

More info: I am upload using the asp:FileUpload control to this diectory
just fine.

Thanks again.

Steve
 
U

Uriah Piddle

I was copying my website to the server from a directory in My Documents and
the permissions settings for the 'Download' folder were copied as well. I
ended up making a folder on my C drive and copying it to the server and it
worked. You can also create a folder in code on the server and it will work.
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top