I kept getting this error when deleting .jpg files from web server.
Access to the path ‘E:wwwroothomemySitemyFolderImagesPic_File.jpg’ is denied
There are only a couple of the .jpg files that gave me the access denied error message. The rest of the photos I can delete them fine without any error. The image folder is setup so tha I have full permission but somehow a couple of the files just won't
let me delete them.
Help is appreciated.
Marked as answer by mychucky on Oct 05, 2007 02:04 PM
The file is valid and does exist on the web server. I used a try...catch and do a popup on the error of the err.Message and that's why I received this:
E:wwwroothomemySitemyFolderImagesPic_File.jpg
And for err.Source I got this:
mscorlib
It works fine when running the page on my local machine....but not when running from the web server.
Marked as answer by mychucky on Oct 05, 2007 02:03 PM
Any other suggestions? I even renamed these two files to something else incase the problem is the file name but it doesn't make any diference. I still have the same problem. I couldn't delete them.
mychucky
Contributor
4358 Points
3709 Posts
Access to the path is denied
Sep 20, 2007 04:48 PM|LINK
I kept getting this error when deleting .jpg files from web server.
Access to the path ‘E:wwwroothomemySitemyFolderImagesPic_File.jpg’ is denied
There are only a couple of the .jpg files that gave me the access denied error message. The rest of the photos I can delete them fine without any error. The image folder is setup so tha I have full permission but somehow a couple of the files just won't let me delete them.
Help is appreciated.
Aeson07
Participant
843 Points
230 Posts
Re: Access to the path is denied
Sep 20, 2007 04:51 PM|LINK
Are those files being used or referenced somewhere?
jguadagno
Contributor
3823 Points
587 Posts
Re: Access to the path is denied
Sep 20, 2007 04:59 PM|LINK
The file name does not appear to be valid.
E:wwwroothomemySitemyFolderImagesPic_File.jpg
My Website: http://www.josephguadagno.net
mychucky
Contributor
4358 Points
3709 Posts
Re: Access to the path is denied
Sep 20, 2007 05:06 PM|LINK
The file is valid and does exist on the web server. I used a try...catch and do a popup on the error of the err.Message and that's why I received this:
E:wwwroothomemySitemyFolderImagesPic_File.jpg
And for err.Source I got this:
mscorlib
It works fine when running the page on my local machine....but not when running from the web server.
mychucky
Contributor
4358 Points
3709 Posts
Re: Access to the path is denied
Sep 20, 2007 05:07 PM|LINK
No, I don't think so. It's on the web server image folder.
Aeson07
Participant
843 Points
230 Posts
Re: Access to the path is denied
Sep 20, 2007 05:22 PM|LINK
Haha, just a thought.
Have you taken the webserver offline to make the changes or can you do that?
mychucky
Contributor
4358 Points
3709 Posts
Re: Access to the path is denied
Sep 20, 2007 05:28 PM|LINK
No, I can't do that. I don't have the permission to do that.
mychucky
Contributor
4358 Points
3709 Posts
Re: Access to the path is denied
Sep 20, 2007 07:54 PM|LINK
Any other suggestions? I even renamed these two files to something else incase the problem is the file name but it doesn't make any diference. I still have the same problem. I couldn't delete them.
jguadagno
Contributor
3823 Points
587 Posts
Re: Access to the path is denied
Sep 20, 2007 09:49 PM|LINK
Could you paste the entire error message?
My Website: http://www.josephguadagno.net
mychucky
Contributor
4358 Points
3709 Posts
Re: Access to the path is denied
Sep 21, 2007 01:19 PM|LINK
Access to the path ‘E:wwwroothomemySitemyFolderImagesPic_File.jpg’ is denied
That's the entire err.Message I got.