Server Error in '/' Application.

The process cannot access the file 'C:\Inetpub\vhosts\sdhjzgs.com\httpdocs\UploadFile\Log\2019\5\26\2019-05-26.xml' because it is being used by another process.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.IOException: The process cannot access the file 'C:\Inetpub\vhosts\sdhjzgs.com\httpdocs\UploadFile\Log\2019\5\26\2019-05-26.xml' because it is being used by another process.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IOException: The process cannot access the file 'C:\Inetpub\vhosts\sdhjzgs.com\httpdocs\UploadFile\Log\2019\5\26\2019-05-26.xml' because it is being used by another process.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7737352
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +61
   System.IO.FileStream..ctor(String path, FileMode mode) +55
   Util.ULog.GetFileSize(String fileName) +134
   Util.ULog.Write(String IP, Exception ex, String message) +626
   Util.ULog.Write(String message) +38
   Dal.Common.SqlHelper.PrepareCommand(SqlCommand command, SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] parameters) +190
   Dal.Common.SqlHelper.FillDataTable(String connectionString, CommandType commandType, String commandText, SqlParameter[] parameters) +205
   Dal.Common.Execute.FillDataTable(PagerTop pager) +149
   Bll.Ui.Article.GetList(ArticleSearch search, Int32 rows, Int32 width, Int32 height, String sort) +304
   Bll.Ui.Article.GetRank(Int32 siteId, Int32 memberId, ArticleClassType eClassType, String classCode, ArticleType eType, Int32 width, Int32 height, Int32 rows) +491
   HJGroup.newsdetail.BindRank(Int32 siteId, Int32 classTypeId, String classCode) +81
   HJGroup.newsdetail.BindData() +4417
   HJGroup.newsdetail.Page_Load(Object sender, EventArgs e) +35
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8798; ASP.NET Version:2.0.50727.8745