ASPX File Upload Issue

J

Jason Myers

Hi

I am trying to build an aspx application. The application needs to upload
images to a web folder. Uploading images works fine, but if the image being
uploaded exists, it needs to be deleted first. I use dotnet's IO objects do
do the work, but keep getting an access denied security issue. I have
checked the rights to all nessessry directories, and made sure that ASP.NET
has full controll. I have done the same for IWAM and IUSER, and even in
deperation, given EVERYONE full controll, but no luck.

Any ideas will be appreciated.

Thanks
 
B

Brock Allen

The identity ASP.NET runs under isn't the same as it was in IIS (at least
by default). Under Windows 2000 and XP, the account is ASPNET and under Windows
2003 it's Network Service.

Now, given that you say you've given everyone on the machine perms to the
file, it makes me wonder if perhaps the file's locked by someone else and
this is your problem. Is it possible that's it's in use or you've forgotten
to close your reference to the file (in essence, leaking the file handle)?

What's the exact error you get back?
 

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,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top