Deleting a portal from a DotNetNuke set of portals caused the error Edit Portals is currently unavailable.
If you don’t catch one of the DotNetNuke error messages, or to elicit more information take a look in the DNN admin log. I’ve often found there to be a better statement of the error than I had previously seen.
If you are going to look in the admin log take a note of the time, it’ll make it easier to find the entry in the log. Particularly if your admin log is busy.
The full error message is given below:
Error: Edit Portals is currently unavailable.
DotNetNuke.ModuleLoadException: Invalid File or Directory attributes value. ---> System.ArgumentException: Invalid File or Directory attributes value. at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes) at DotNetNuke.Globals.DeleteFolderRecursive(String strRoot) at DotNetNuke.Globals.DeleteFolderRecursive(String strRoot) at DotNetNuke.SiteSettings.Delete_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---
The error was found to be due to sub-directories within the portal which were not part of the expected DNN structure.
I found there were files left within the portal directory which ought to have been deleted. Perhaps the deletion had timed out. Its also possibly a permission issue whereby DNN didn’t have access to a file.
Did you upload files directly to hte portal directory rather than using the DNN file manager?
To enable the portal to be deleted correctly the additional sub-directories should be first deleted.
Once this has been done its possible to trigger the deletion of the website once more.


