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

這個 SqlTransaction 已經完成,它已不再是個可使用的項目。

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

例外狀況詳細資訊: System.InvalidOperationException: 這個 SqlTransaction 已經完成,它已不再是個可使用的項目。

原始程式錯誤:


行 780:        vsCmd.Parameters.AddWithValue("secureChk", psChk).SqlDbType = SqlDbType.VarChar;
行 781:        vsCmd.CommandText = vsSql.ToString();
行 782:        psMenu.Execute(vsCmd);
行 783:    }
行 784:

原始程式檔: c:\inetpub\vhosts\plbtw.com\httpdocs\Web\App_Code\common.cs    行: 782

堆疊追蹤:


[InvalidOperationException: 這個 SqlTransaction 已經完成,它已不再是個可使用的項目。]
   System.Data.SqlClient.SqlTransaction.ZombieCheck() +1397547
   System.Data.SqlClient.SqlTransaction.Rollback() +130
   Echome.MsSql.Execute(SqlCommand psCmd) +352
   Common.UpdateViewCount(FgMenu psMenu, String psTable, Int32 psID, String psChk) in c:\inetpub\vhosts\plbtw.com\httpdocs\Web\App_Code\common.cs:782
   GB_huijing_5_in.GetData() in c:\inetpub\vhosts\plbtw.com\httpdocs\Web\GB\huijing_5_in.aspx.cs:228
   GB_huijing_5_in.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\plbtw.com\httpdocs\Web\GB\huijing_5_in.aspx.cs:50
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0