Quantcast
Channel: Blinq Preview (RETIRED)
Viewing all articles
Browse latest Browse all 27

The transaction has already been implicitly or explicitly committed or aborted

$
0
0

Why does this error happen when I try to insert a new message?

 

 

Server Error in '/LMBlinq' Application.

The transaction has already been implicitly or explicitly committed or aborted (Exception from HRESULT: 0x8004D00E)

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.Runtime.InteropServices.COMException: The transaction has already been implicitly or explicitly committed or aborted (Exception from HRESULT: 0x8004D00E)

Source Error:

Line 31:       LawMessage db = CreateDataContext();
Line 32: db.Messages.Add(x); Line 33: db.SubmitChanges(); Line 34: return 1; Line 35: }

Source File: c:\LMBlinq\NewMessage.aspx.cs   Line: 33

Stack Trace:

[COMException (0x8004d00e): The transaction has already been implicitly or explicitly committed or aborted (Exception from HRESULT: 0x8004D00E)]
   System.Transactions.Oletx.ITransactionShim.Export(UInt32 whereaboutsSize, Byte[] whereabouts, Int32& cookieIndex, UInt32& cookieSize, CoTaskMemHandle& cookieBuffer) +0
   System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts) +211

[TransactionException: The transaction has already been implicitly or explicitly committed or aborted.]
   System.Transactions.Oletx.OletxTransactionManager.ProxyException(COMException comException) +326
   System.Transactions.TransactionInterop.GetExportCookie(Transaction transaction, Byte[] whereabouts) +266
   System.Data.SqlClient.SqlInternalConnection.EnlistNonNull(Transaction tx) +379
   System.Data.SqlClient.SqlInternalConnection.Enlist(Transaction tx) +50
   System.Data.SqlClient.SqlInternalConnectionTds.Activate(Transaction transaction) +47
   System.Data.ProviderBase.DbConnectionInternal.ActivateConnection(Transaction transaction) +28
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +1242
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +89
   System.Data.SqlClient.SqlConnection.Open() +159
   System.Data.DLinq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) +38
   System.Data.DLinq.SqlClient.SqlContext.get_IsServer2KOrEarlier() +31
   System.Data.DLinq.SqlClient.SqlContext.Execute(Expression query) +351
   System.Data.DLinq.SimpleChangeDirector.ExecuteInsert(TrackedObject item, StringBuilder changeText) +147
   System.Data.DLinq.SimpleChangeDirector.Insert(TrackedObject item) +95
   System.Data.DLinq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +234
   System.Data.DLinq.DataContext.SubmitChanges(ConflictMode failureMode) +211
   System.Data.DLinq.DataContext.SubmitChanges() +6
   NewMessagePage.Insert(Message x) in c:\LMBlinq\NewMessage.aspx.cs:33

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +358
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   Microsoft.Web.UI.Controls.PageDataSourceView.InvokeMethod(PageDataSourceMethod method) +157
   Microsoft.Web.UI.Controls.PageDataSourceView.ExecuteInsert(IDictionary values) +454
   System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +68
   System.Web.UI.WebControls.DetailsView.HandleInsert(String commandArg, Boolean causesValidation) +392
   System.Web.UI.WebControls.DetailsView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +609
   System.Web.UI.WebControls.DetailsView.OnBubbleEvent(Object source, EventArgs e) +88
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.DetailsViewRow.OnBubbleEvent(Object source, EventArgs e) +109
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +86
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +153
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +172
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4917


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Viewing all articles
Browse latest Browse all 27

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>