asp.net FileUpload control problem: access to directory is denied

Posted by citrus on Stack Overflow See other posts from Stack Overflow or by citrus
Published on 2010-05-19T05:25:29Z Indexed on 2010/05/19 5:30 UTC
Read the original article Hit count: 309

Filed under:
|
|

Hi, Im trying to use the fileupload control. Im using Visual Web Developer Express on my desktop.

My web application is working fine except I cant use the fileUpload control. I get the following error:

ERROR: Access to the path (My_Directory) is denied

I searched and it appears to be a permissions problem. So I attempted to add the user ASPNET and give appropriate permissions to the directory, however, I was unable to add user "ASPNET". User "ASPNET" was not found.

So then I followed the following directions to add user ASPNET via Control Panel > Administration > Computer management. So now I was able to add user ASPNET to the directory and give appropriate permissions but I still got the above error.

http://p2p.wrox.com/net-web-services/5918-creating-aspnet-user.html

Any ideas on why I cant access the directory?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about permissions