Menu

#16 Unhandled Exception - File In Use

2.3.1.0
closed
None
2019-07-24
2018-10-16
Brian
No

Kind of defeats the purpose of tail if I can't tail a log that is being written.

(Also, please add an option to disable checks for new versions so I don't get the popup error message every time due to my firewall blocking your connection.)

System.IO.IOException: The process cannot access the file 'd:\website\amp\httpd\logs\error.log' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding)
at System.IO.File.InternalReadAllLines(String path, Encoding encoding)
at d.f(String A_0)
at d.l(Object A_0, EventArgs A_1)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

** Loaded Assemblies **
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll


WinTail
Assembly Version: 2.2.4.2
Win32 Version: 2.2.4.2
CodeBase: file:///C:/Portable/WinTail-2.2.4.2/WinTail-2.2.4.2-portable.exe


System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2558.0 built by: NET471REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll


Discussion

  • Alberto Andreo

    Alberto Andreo - 2018-10-28
    • status: open --> accepted
     
  • Alberto Andreo

    Alberto Andreo - 2018-10-28

    Hi. The option to disable the software update version is not implemented yet.

    I will add an extra parameter in the application settings in order to enable or disable software update checks.

    For the exception you mentioned to me, it seems that the input log file (that looks like a web server log file), it's maybe locked by another process.

    I'll investigate anyway in the code in order to find out a solution for that, ok?

    Stay in touch. I'll give you feedback regarding your issue with this ticket.

    Thanks

     
  • Alberto Andreo

    Alberto Andreo - 2018-10-28
    • assigned_to: Alberto Andreo
     
  • Alberto Andreo

    Alberto Andreo - 2018-10-29
    • Milestone: 1.4 --> 2.2.4.4
     
  • Alberto Andreo

    Alberto Andreo - 2018-11-10
    • Milestone: 2.2.4.4 --> Bugs to check and fix
     
  • Grzegorz Skoczylas

    It seems that this error is still not corrected. That is a pity. I could use this program very much.

    (OS: Win10 Pro, 64-bit)

     
  • Alberto Andreo

    Alberto Andreo - 2019-07-24
    • status: accepted --> closed
    • Milestone: Bugs to check and fix --> 2.3.0.1
     
  • Alberto Andreo

    Alberto Andreo - 2019-07-24
    • Milestone: 2.3.0.1 --> 2.3.1.0
     

Log in to post a comment.

MongoDB Logo MongoDB