I'm building some delete media library folder functionality that suppose to act throught jquery ajax. I'm seding request from javascript to some webmethod enabled page, here is my code
[WebMethod]
public static void DeleteDirectory(string LibraryName, string FolderPath)
{
MediaLibraryInfo libraryInfo = MediaLibraryInfoProvider.GetMediaLibraryInfo(LibraryName,CMSContext.CurrentSiteName);
try
{
MediaLibraryInfoProvider.DeleteMediaLibraryFolder(CMSContext.CurrentSiteName, libraryInfo.LibraryID, FolderPath, false);
}catch(Exception exx){
}
}
Foldeer is right and medialibraryname is correct,
But i'm getting following exception:
"Access to the path 'all-wcprops' is denied."
Please help
Thanks forward