Author: @rturo | Posted on: 8/29/2009 7:42:15 AM | Views : 265

I have a web application that in some pages has an HTML Editor that has also an Image Gallery depending in where page is called.
Example: I have 2 web pages: Events and Newsletters and each one has an HTML Editor that loads the images for the corresponding physical folder.


The problem is that when I want to delete the images through the Image Gallery page called from Newsletters page I have no problem but when I try to delete them from the Events page i get this exception
System.UnauthorizedAccessException: Access to the path 'C:\WebFiles\EventImages\Ev_00004_20090609061632.jpg' is denied.


The code in the Image Gallery page is here:
Private Sub ibtnDelete_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEve ...

Go to the complete details ...