IZWebFileManager

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

Re: Rename, Copy & Move Operations Hanging

  •  07-18-2009, 9:29 AM

    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 Complete Thread
www.IZWebFileManager.com
izwebfilemanager@gmail.com