“/”应用程序中的服务器错误。

文件“D:\wwwroot\zhaopump\_out.txt”正由另一进程使用,因此该进程无法访问此文件。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.IOException: 文件“D:\wwwroot\zhaopump\_out.txt”正由另一进程使用,因此该进程无法访问此文件。

源错误:


行 65:                 shell.SetVarObject("a", "string", 1);
行 66:                 //执行脚本
行 67:                 shell.Run();        
行 68:             }
行 69:             //string Url = "http://139.224.22.83:8080/default.ashx?xmls=normalusr.xmls&method=collectShop";

源文件: d:\wwwroot\zhaopump\default.ashx    行: 67

堆栈跟踪:


[IOException: 文件“D:\wwwroot\zhaopump\_out.txt”正由另一进程使用,因此该进程无法访问此文件。]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1020
   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) +1020
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +66
   System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +80
   System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +66
   System.IO.StreamWriter..ctor(String path, Boolean append) +38
   XMLSClass.XMLSMethodWriteOut.Execute(XMLSShell shell, XMLSNode node) +3549
   XMLS.XMLSScript.Process(XMLSShell shell, XMLSNode node) +125
   XMLS.XMLSScript.Run(XMLSShell shell, XMLSNode node) +234
   XMLSClass.XMLSMethodSystemCall.Execute(XMLSShell shell, XMLSNode node) +427
   XMLS.XMLSScript.Process(XMLSShell shell, XMLSNode node) +125
   XMLS.XMLSScript.Run(XMLSShell shell, XMLSNode node) +234
   XMLS.XMLSHtml.Run(XMLSShell shell, XMLSNode node) +1132
   XMLS.XMLSShell.Run() +231
   Handler.ProcessRequest(HttpContext context) in d:\wwwroot\zhaopump\default.ashx:67
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +814
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0