[IOException: 文件“D:\WebSite\NewWebSite\App_Data\protected\logs\2024-04-18.log”正由另一进程使用,因此该进程无法访问此文件。]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +893
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) +1217
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +130
System.IO.FileStream..ctor(String path, FileMode mode) +97
LogHelper.Log(String ex) +355
ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) +281
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +139
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88
|