'/' 應用程式中發生伺服器錯誤。

收到來自傳輸資料流的未預期 EOF 或 0 個位元組。

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.IO.IOException: 收到來自傳輸資料流的未預期 EOF 或 0 個位元組。

原始程式錯誤:


行 280:	  Dim doc As New XmlDocument()
行 281: 
行 282:         doc.Load("http://xml.smg.gov.mo/e_4daysforecast.xml")
行 283: 
行 284:        Dim root As XmlElement = doc.DocumentElement

原始程式檔: C:\inetpub\wwwroot\mice\current\weather.aspx    行: 282

堆疊追蹤:


[IOException: 收到來自傳輸資料流的未預期 EOF 或 0 個位元組。]
   System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) +7142035
   System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) +116
   System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) +277
   System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) +7318674
   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.HttpWebRequest.GetResponse() +1126
   System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) +86
   System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +65
   System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +76
   System.Threading.CompressedStack.runTryCode(Object userData) +118
   System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
   System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +122
   System.Xml.XmlTextReaderImpl.OpenUrl() +5047756
   System.Xml.XmlTextReaderImpl.Read() +152
   System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
   System.Xml.XmlDocument.Load(XmlReader reader) +134
   System.Xml.XmlDocument.Load(String filename) +95
   ASP.en_weather_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\mice\current\weather.aspx:282
   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.9061; ASP.NET 版本:2.0.50727.9062