1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / IOException thrown by the Project Manager when removing a project and its files

IOException thrown by the Project Manager when removing a project and its files

2 posts, 0 answered
  1. Michiel
    Michiel avatar
    37 posts
    Registered:
    14 Dec 2010
    25 Apr 2011
    Link to this post
    I had just created a project and when I removed it from the Project Manager I got the following exceptions:

    ---------------------------
    Unhandled exception
    ---------------------------
    =>IOException
    The directory is not empty.
    ---------------------------
    OK   
    ---------------------------

    I looked at the directory, and it was actually empty...
    Here's the log:

    =====[ 2011/04/25 12:35:55 ]=====
    =>IOException
    The directory is not empty.


    Stack trace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive)
       at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive)
       at Sitefinity.ProjectManager.UI.MainForm.RemoveProjects(IProject[] projects)
       at Sitefinity.ProjectManager.UI.MainForm.RemoveProjects()
       at Sitefinity.ProjectManager.UI.MainForm.commadsToolstrip_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    28 Apr 2011
    Link to this post
    Hello Michiel,

    Is it possible that when you have tried to remove the project while it was still running in the integrated server? If this is the case the integrated server should put a lock on some of the project files to prevent them from being deleted while it is still running.

    All the best,
    Radoslav Georgiev
    the Telerik team

2 posts, 0 answered