[IOException: 文件“D:\wwwroot\hdsensorcom\wwwroot\logs\Cache\2024-06-01.log”正由另一進程使用
,因此該進程無法訪問此文件
。]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +227
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) +738
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +68
System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +76
System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +75
System.IO.StreamWriter..ctor(String path, Boolean append) +39
System.IO.File.AppendText(String path) +39
Log.WriteLog(String info, String className, String content, String type) +306
Log.Info(String className, String content, String type) +47
Template.BLL.PageLoading.Page_Load(Object sender, EventArgs e) +4645
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
System.Web.UI.Control.OnLoad(EventArgs e) +97
System.Web.UI.Control.LoadRecursive() +61
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693
|