Exception when trying to delete a directory in Isolated Storage
问题 I get the following exception when I try to delete a directory in Isolated Storage in Windows Phone 7: An error occurred while accessing IsolatedStorage. there is no inner exception. using (var isf = IsolatedStorageFile.GetUserStoreForApplication()) { isf.DeleteDirectory(dir.TrimEnd('/')); } Notes: putting it in a try-catch will hide the exception but still directory is not deleted! before calling this I delete all files inside that using DeleteFile() so the problem can not be related to