基础连接已经关闭: 无法连接到远程服务器
生活随笔
收集整理的這篇文章主要介紹了
基础连接已经关闭: 无法连接到远程服务器
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
基礎連接已經(jīng)關閉: 無法連接到遠程服務器。
說明: 執(zhí)行當前 Web 請求期間,出現(xiàn)未處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。異常詳細信息: System.Net.WebException: 基礎連接已經(jīng)關閉: 無法連接到遠程服務器。
源錯誤:
| 行 19: Uri myUri =new Uri("http://test.xxxxx.cn/checkstr.txt");行 20: WebRequest req = WebRequest.Create(myUri);行 22: Stream srepstr = result.GetResponseStream(); //得到是一個對象行 23: Encoding encode = Encoding.GetEncoding("UTF-8"); |
堆棧跟蹤:
| [WebException: 基礎連接已經(jīng)關閉: 無法連接到遠程服務器。]System.Net.HttpWebRequest.CheckFinalStatus() +677System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +140System.Net.HttpWebRequest.GetResponse() +249ASP.s_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in D:\webroot\ManAd\nokia\s.aspx:21System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27System.Web.UI.Control.Render(HtmlTextWriter writer) +7System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243System.Web.UI.Page.ProcessRequestMain() +1926 |
總結
以上是生活随笔為你收集整理的基础连接已经关闭: 无法连接到远程服务器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IIS 错误代码大汇总
- 下一篇: VC++中消除警告