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这个是报的错误。我不知道怎么处理?高手帮忙一下我这个菜鸟
解决方案 »
- CODESOFT6 如何在程序中动态设置Text显示位置
- 用winform 上传文件到IIS7.5怎么弄
- vs2008下c#中如何开大数组
- 跪求C# Winform语音通话源码
- 文件版本号问题
- Microsoft Agent 的对话框不消失又一个100分啊
- TreeView与DataGirdView
- 大家有没有遇见过dllimport的问题?
- xml文件读问题
- winform中,datagrid写dataGrid1_MouseDown,怎么也取得不了所点击的当前行的索引?求助!郁闷到极点了!
- 求解vs2003.net中crystal reports注册问题
- 用HashTable可不可以删除最后一个添加进表的值啊
FileStream logFieStream = new FileStream( strTempDestFilePath, FileMode.Open, FileAccess.Read );
StreamReader vLogStreamReader = new StreamReader( logFieStream, System.Text.Encoding.Default );