Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > ASPX File Upload Issue

Reply
Thread Tools

ASPX File Upload Issue

 
 
Jason Myers
Guest
Posts: n/a
 
      04-26-2005
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


 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-26-2005
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?

-Brock
DevelopMentor
http://staff.develop.com/ballen



> 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
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload a file without file Upload control - ASP.Net =?Utf-8?B?U2FyYXY=?= ASP .Net 3 08-03-2005 01:09 AM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
File upload/download from database. Download appends aspx page to end of file Ryan Taylor ASP .Net 2 11-10-2004 08:31 PM
File Upload Issue - INPUT type="file" and Use of .click() HVG ASP .Net 2 06-13-2004 07:49 AM
including one aspx file in another aspx file vish ASP .Net 2 07-16-2003 10:29 PM



Advertisments