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

从传输流收到意外的 EOF 或 0 个字节。

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

异常详细信息: System.IO.IOException: 从传输流收到意外的 EOF 或 0 个字节。

源错误:


行 57: System.Net.WebClient wc = new System.Net.WebClient();
行 58: wc.Encoding = System.Text.Encoding.UTF8;
行 59: var result = wc.DownloadString("http://movie.douban.com/j/subject_suggest?q="+movie.IMDBID);
行 60: wc.Dispose();
行 61: 

源文件: e:\imdb_ireaderserver_com\BaiduApp\Details.aspx    行: 59

堆栈跟踪:


[IOException: 从传输流收到意外的 EOF 或 0 个字节。]
   System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +7082579
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +116
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +121
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +7258530
   System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) +214
   System.Threading.ExecutionContext.runTryCode(Object userData) +376
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) +98
   System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) +1131
   System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) +88
   System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) +20
   System.Net.ConnectStream.WriteHeaders(Boolean async) +360

[WebException: 基础连接已经关闭: 发送时发生错误。]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +3066429
   System.Net.WebClient.DownloadString(Uri address) +129
   ASP.baiduapp_details_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in e:\imdb_ireaderserver_com\BaiduApp\Details.aspx:59
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


版本信息: Microsoft .NET Framework 版本:2.0.50727.5420; ASP.NET 版本:2.0.50727.5420