20070709 14:51:19 AppDBScoutManager.LogScan|ex=System.IO.IOException: The process cannot access the file "D:\Log\BS\BS20070709.log" because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at Megajoy.Vod.Tool.Scount.BSDBScoutModule.AppLog.FindErrorInLog(String LastCheckFileName, Int32 BeginLine, String BeginTime, Int32& ErrorLine, String& ErrorTime, String& CheckLogFileName, String& ErrMsg) in d:\project\vod_src\interface\bsdbscout\src\bsdbscoutmodule\applog.cs:line 65这个是报的错误。我不知道怎么处理?高手帮忙一下我这个菜鸟
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at Megajoy.Vod.Tool.Scount.BSDBScoutModule.AppLog.FindErrorInLog(String LastCheckFileName, Int32 BeginLine, String BeginTime, Int32& ErrorLine, String& ErrorTime, String& CheckLogFileName, String& ErrMsg) in d:\project\vod_src\interface\bsdbscout\src\bsdbscoutmodule\applog.cs:line 65这个是报的错误。我不知道怎么处理?高手帮忙一下我这个菜鸟
FileStream logFieStream = new FileStream( strTempDestFilePath, FileMode.Open, FileAccess.Read );
StreamReader vLogStreamReader = new StreamReader( logFieStream, System.Text.Encoding.Default );