IZWebFileManager

Advanced ASP.NET File Manager
Welcome to IZWebFileManager Sign in | Join | Help
in Search
The forum is moved to http://groups.google.com/group/izwebfilemanager
If you have any question, please post there. Thanks!

Rename, Copy & Move Operations Hanging

Last post 07-18-2009, 9:29 AM by MarkJ. 3 replies.
Sort Posts: Previous Next
  •  05-14-2009, 11:34 PM 386

    Rename, Copy & Move Operations Hanging

    Greetings,

    I'm getting the control hanging on me when I try to do theses operations it just has the hour glass stay there and the little spinner in the top right hand corner just goes round and round. Refreshing the page page gets the control working again but the operation is not done.

    Has anyone else encountered this problem?

    This happens with IE and FireFox.

    It never seems to happen with the demo but my page is very similar to the demo with a masterpage and a filemanager control and little else.
  •  07-07-2009, 3:35 PM 406 in reply to 386

    Re: Rename, Copy & Move Operations Hanging

    I have exactly the same problem!
  •  07-17-2009, 10:09 AM 408 in reply to 386

    Re: Rename, Copy & Move Operations Hanging

    I had the same problem and initally created a refresh button

    Protected Sub ButtonRefresh_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ButtonRefresh.Click

    FileManager1.DataBind()
    FileManager1.Focus()

    End Sub

    This was not a solution but the user could at least press this and it would un-hang.

    Additional research suggested that placing the control within a placeholder could help.

    <asp:PlaceHolder ID="PlaceHolder1" runat="server">
    ..... file manager here

    </asp:PlacHolder>

     

    I also have an ajax update pane on the page - but not surrounding the control.

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">

    <ContentTemplate>

    </ContentTemplate>

    </asp:UpdatePanel>

    This seem to have stopped the problem for me.

    If anyone has a better solution I would like to hear it.

    Regards Mark

     

  •  07-18-2009, 9:29 AM 409 in reply to 408

    Re: Rename, Copy & Move Operations Hanging

    Forgot one other thing - the most important.

    I also added the following code to the Global.asax file of my website.

    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)

    ' Code that runs on application startup

    'For izWebFileManager

    ' to overcome hang on rename or delete see Rename/Delete folder bug inthe the Bugs/Problems/Errors forum

    ' http://connect.microsoft.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=240686

    'Eliminacion de las Notificaciones de cambios en archivos

    Dim p As System.Reflection.PropertyInfo = GetType(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", _
    System.Reflection.BindingFlags.NonPublic Or _
    System.Reflection.BindingFlags.Public Or
    _
    System.Reflection.BindingFlags.Static)

    Dim o As Object = p.GetValue(Nothing, Nothing)

    Dim f As System.Reflection.FieldInfo = o.GetType().GetField("_dirMonSubdirs", _
    System.Reflection.BindingFlags.Instance Or _
    System.Reflection.BindingFlags.NonPublic Or
    _
    System.Reflection.BindingFlags.IgnoreCase)

    Dim monitor As Object = f.GetValue(o)

    Dim m As System.Reflection.MethodInfo = monitor.GetType().GetMethod("StopMonitoring", _
    System.Reflection.BindingFlags.Instance Or _
    System.Reflection.BindingFlags.NonPublic)

    m.Invoke(monitor, New Object() {})

    End Sub

     

View as RSS news feed in XML
www.IZWebFileManager.com
izwebfilemanager@gmail.com