Server Error in '/' Application.

Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Source Error:


Line 25:         TK.Time = DateTime.Parse(TK.ExcuteProcedureScalar(null,"GetDateTime",new object[0]).ToString());
Line 26:         TK.Lock = false;
Line 27:         TK.Insert();
Line 28: 
Line 29:         List<object> loTK = new List<object>();

Source File: d:\vhosts\gpsgarmin.vn\httpdocs\App_Code\KiemTraTruyCap.cs    Line: 27

Stack Trace:


[SqlException (0x80131904): Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +109
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +57
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2443
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +148
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +949
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +242
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +289
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +132
   LeadCore.SqlClientUtility.ExecuteNonQuery(DataTransaction dataTransaction, SqlStruct sqlStruct) in E:\Research\Data_CORE\Version2\LeadCore\DataCore\SqlClientUtility.cs:351
   LeadCore.BaseClass.Insert(DataTransaction dataTransaction) in E:\Research\Data_CORE\Version2\LeadCore\ClassCore\BaseClass.cs:120
   LeadCore.BaseClass.Insert() in E:\Research\Data_CORE\Version2\LeadCore\ClassCore\BaseClass.cs:113
   KiemTraTruyCap.KiemTra(HttpRequest httpRequest) in d:\vhosts\gpsgarmin.vn\httpdocs\App_Code\KiemTraTruyCap.cs:27
   MasterPage.Page_Load(Object sender, EventArgs e) in d:\vhosts\gpsgarmin.vn\httpdocs\MasterPage.master.cs:27
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2603


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175