File Access

  • Thread starter Thread starter Uriah Piddle
  • Start date Start date
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
 
More info: I am upload using the asp:FileUpload control to this diectory
just fine.

Thanks again.

Steve
 
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.
 
Back
Top