****************************异常文本**************************** 【出现时间】:2020/6/11 16:12:17 【异常类型】:WebException 【异常信息】:请求被中止: 操作超时。 【堆栈调用】: 在 System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) 在 System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 SynchJiben.HYAY.SysnInfo.WX_Service.GetArchives(String HospitalCode) 在 SynchJiben.Form2.SynChilderJIBen() 在 SynchJiben.Form2.timer1_Tick(Object sender, EventArgs e) 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 【异常方法】:System.Net.WebResponse GetWebResponse(System.Net.WebRequest) *************************************************************** ****************************异常文本**************************** 【出现时间】:2020/6/15 21:47:00 【异常类型】:WebException 【异常信息】:无法连接到远程服务器 【堆栈调用】: 在 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 在 System.Net.HttpWebRequest.GetRequestStream() 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 SynchJiben.HYAY.SysnInfo.WX_Service.GetArchives(String HospitalCode) 在 SynchJiben.Form2.SynChilderJIBen() 在 SynchJiben.Form2.timer1_Tick(Object sender, EventArgs e) 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 【异常方法】:System.IO.Stream GetRequestStream(System.Net.TransportContext ByRef) *************************************************************** ****************************异常文本**************************** 【出现时间】:2020/6/16 14:02:39 【异常类型】:InvalidOperationException 【异常信息】:客户端发现响应内容类型为“text/html; charset=utf-8”,但应为“text/xml”。 请求失败,错误信息为: -- 未预编译文件“/api/WX_Service.asmx”,因此不能请求该文件。

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

未预编译文件“/api/WX_Service.asmx”,因此不能请求该文件。

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

异常详细信息: System.Web.HttpException: 未预编译文件“/api/WX_Service.asmx”,因此不能请求该文件。

源错误:

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[HttpException (0x80004005): 未预编译文件“/api/WX_Service.asmx”,因此不能请求该文件。]
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +9868750
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +103
   System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate) +82
   System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath) +17
   System.Web.UI.WebServiceParser.GetCompiledType(String inputFile, HttpContext context) +43
   System.Web.Services.Protocols.WebServiceHandlerFactory.GetCompiledType(String url, HttpContext context) +34
   System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) +179
   System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +47
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +226
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +156
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +159


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0
--. 【堆栈调用】: 在 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) 在 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) 在 SynchJiben.HYAY.SysnInfo.WX_Service.GetArchives(String HospitalCode) 在 SynchJiben.Form2.SynChilderJIBen() 在 SynchJiben.Form2.timer1_Tick(Object sender, EventArgs e) 在 System.Windows.Forms.Timer.OnTick(EventArgs e) 在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 【异常方法】:System.Object[] ReadResponse(System.Web.Services.Protocols.SoapClientMessage, System.Net.WebResponse, System.IO.Stream, Boolean) ***************************************************************