none
Problem to open svcTrace file : Unexpected end of file has occurred ... RRS feed

  • Question

  • Hi

    when I start tracing of wcf service, it create an error.svclog file, but when I open it, facing this error :

    Description 
    Trace Record Errors
    Unexpected end of file has occurred. Line 107, position 178383

    Where is the problem and how to solve it ?

    thanks in advance


    http://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

    Thursday, July 9, 2015 1:43 AM

Answers

  • Hello Hamed_1983,

    This most likely is because the file you are opening is currently being written to and its content has partially been flushed to disk.  If you want to view files while the process is running then try putting the autoflush on to see if this helps.  Stopping the process (or restarting the app pool) will cause the flush to happen also.

    https://msdn.microsoft.com/en-us/library/system.diagnostics.trace.autoflush%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396


    Jeff

    Thursday, July 9, 2015 11:29 PM