Skip to content

Instantly share code, notes, and snippets.

@Domon
Last active January 28, 2016 07:15
Show Gist options
  • Save Domon/4baeaf3a2f94b61dfab0 to your computer and use it in GitHub Desktop.
Save Domon/4baeaf3a2f94b61dfab0 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>
<body bgcolor="white">
<span><H1>'/' 應用程式中發生伺服器錯誤。<hr width=100% size=1 color=silver></H1>
<h2> <i>在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> 描述: </b>在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。
<br><br>
<b> 例外詳細資訊: </b>System.Data.SqlClient.SqlException: 在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)<br><br>
<b>原始程式錯誤:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
行 3053: }
行 3054: dts_Article.ARTICLEDataTable dataTable = new dts_Article.ARTICLEDataTable();
<font color=red>行 3055: this.Adapter.Fill(dataTable);
</font>行 3056: if (((this.Adapter.SelectCommand.Parameters[5].Value == null)
行 3057: || (this.Adapter.SelectCommand.Parameters[5].Value.GetType() == typeof(global::System.DBNull)))) {</pre></code>
</td>
</tr>
</table>
<br>
<b> 原始程式檔: </b> c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2e1b91b\bc56dbd9\App_Code.-2iinjfe.4.cs<b> &nbsp;&nbsp; 行: </b> 3055
<br><br>
<b>堆疊追蹤:</b> <br><br>
<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>
[SqlException (0x80131904): 在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1959034
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4876523
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParserStateObject.WriteSni() +4884502
System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode) +254
System.Data.SqlClient.TdsParserStateObject.ExecuteFlush() +62
System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc) +4296
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +130
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +115
dts_ArticleTableAdapters.ARTICLETableAdapter.aspt_ARTICLE_GetChild_Front(String MODE, String L1_CODE, Nullable`1 INT_DATA_BEGIN_NUMBER, Nullable`1 INT_DATA_END_NUMBER, String&amp; RESULT) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2e1b91b\bc56dbd9\App_Code.-2iinjfe.4.cs:3055
Mobile_index.List_Load() in d:\AppData\E-century\Source\Mobile\index.aspx.cs:24
Mobile_index.Page_Load(Object sender, EventArgs e) in d:\AppData\E-century\Source\Mobile\index.aspx.cs:16
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
</pre></code>
</td>
</tr>
</table>
<br>
<hr width=100% size=1 color=silver>
<b>版本資訊:</b>&nbsp;Microsoft .NET Framework 版本:2.0.50727.5485; ASP.NET 版本:2.0.50727.5491
</font>
</body>
</html>
<!--
[SqlException]: 在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)
於 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
於 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
於 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
於 System.Data.SqlClient.TdsParserStateObject.WriteSni()
於 System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode)
於 System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
於 System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc)
於 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
於 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
於 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
於 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
於 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
於 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
於 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
於 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
於 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
於 dts_ArticleTableAdapters.ARTICLETableAdapter.aspt_ARTICLE_GetChild_Front(String MODE, String L1_CODE, Nullable`1 INT_DATA_BEGIN_NUMBER, Nullable`1 INT_DATA_END_NUMBER, String& RESULT) 於 c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2e1b91b\bc56dbd9\App_Code.-2iinjfe.4.cs: 行 3055
於 Mobile_index.List_Load() 於 d:\AppData\E-century\Source\Mobile\index.aspx.cs: 行 24
於 Mobile_index.Page_Load(Object sender, EventArgs e) 於 d:\AppData\E-century\Source\Mobile\index.aspx.cs: 行 16
於 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
於 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
於 System.Web.UI.Control.OnLoad(EventArgs e)
於 System.Web.UI.Control.LoadRecursive()
於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException]: 已發生類型 'System.Web.HttpUnhandledException' 的例外狀況。
於 System.Web.UI.Page.HandleError(Exception e)
於 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
於 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
於 System.Web.UI.Page.ProcessRequest()
於 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
於 System.Web.UI.Page.ProcessRequest(HttpContext context)
於 ASP.mobile_index_aspx.ProcessRequest(HttpContext context) 於 c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2e1b91b\bc56dbd9\App_Web_dkgmtdjk.14.cs: 行 0
於 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
於 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
--><!--
此錯誤頁面可能包含敏感性資料,因為 ASP.NET 是設定成使用 &lt;customErrors mode="Off"/&gt; 顯示詳細資訊錯誤訊息。請考慮在實際執行環境中使用 &lt;customErrors mode="On"/&gt; 或 &lt;customErrors mode="RemoteOnly"/&gt;。-->
[SqlException (0x80131904): 在傳送要求至伺服器時發生傳輸層級的錯誤。 (provider: TCP 提供者, error: 0 - 遠端主機已強制關閉一個現存的連線。)]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1959034
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4876523
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParserStateObject.WriteSni() +4884502
System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode) +254
System.Data.SqlClient.TdsParserStateObject.ExecuteFlush() +62
System.Data.SqlClient.TdsParser.TdsExecuteRPC(_SqlRPC[] rpcArray, Int32 timeout, Boolean inSchema, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj, Boolean isCommandProc) +4296
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +10
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +130
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +115
dts_ArticleTableAdapters.ARTICLETableAdapter.aspt_ARTICLE_GetChild_Front(String MODE, String L1_CODE, Nullable`1 INT_DATA_BEGIN_NUMBER, Nullable`1 INT_DATA_END_NUMBER, String&amp; RESULT) in c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a2e1b91b\bc56dbd9\App_Code.-2iinjfe.4.cs:3055
Mobile_index.List_Load() in d:\AppData\E-century\Source\Mobile\index.aspx.cs:24
Mobile_index.Page_Load(Object sender, EventArgs e) in d:\AppData\E-century\Source\Mobile\index.aspx.cs:16
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment