Bug Report B202831
Visible to All Users

SqlConnection does not support parallel transactions

created 14 years ago

Hi,
I have urgent problem on my production server. Application started throwing "SqlConnection does not support parallel transactions" errors. Users can't make any update to db. I must stress that application access database only through XPO (MS SQL Server 2008).
This is stack trace I see in event viewer:
    User host address: yyy.yyy.yyy.yyy
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: IIS APPPOOL\zzz

Thread information:
    Thread ID: 41
    Thread account name: IIS APPPOOL\zzz
    Is impersonating: False
    Stack trace: at System.Data.SqlClient.SqlInternalConnection.BeginSqlTransaction(IsolationLevel iso, String transactionName)
   at System.Data.SqlClient.SqlInternalConnection.BeginTransaction(IsolationLevel iso)
   at System.Data.SqlClient.SqlConnection.BeginDbTransaction(IsolationLevel isolationLevel)
   at System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction()
   at DevExpress.Xpo.DB.ConnectionProviderSql.ConnectionBeginTransaction(Object il)
   at DevExpress.Xpo.DB.ConnectionProviderSql.BeginTransactionCore(Object il)
   at DevExpress.Xpo.DB.ConnectionProviderSql.BeginTransaction()
   at DevExpress.Xpo.DB.MSSqlConnectionProvider.ProcessModifyData(ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.DB.DataStoreSerializedBase.ModifyData(ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.DB.ConnectionProviderSql.ModifyData(ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.DB.DataCacheRoot.ModifyDataCore(DataCacheCookie cookie, ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.DB.Helpers.DataCacheBase.ModifyData(DataCacheCookie cookie, ModificationStatement[] statements)
   at DevExpress.Xpo.DB.DataCacheNode.ModifyDataCore(DataCacheCookie cookie, ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.DB.Helpers.DataCacheBase.ModifyData(ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.ThreadSafeDataLayer.ModifyData(ModificationStatement[] dmlStatements)
   at DevExpress.Xpo.SimpleObjectLayer.CommitChanges(Session session, ICollection fullListForDelete, ICollection completeListForSave)
   at DevExpress.Xpo.Session.FlushChangesInsideTransaction()
   at DevExpress.Xpo.Session.FlushChanges()
   at DevExpress.Xpo.Session.CommitTransaction()
   at DevExpress.Xpo.UnitOfWork.CommitChanges()
   at DIT.Persistence.Db.Xpo.XpoTransaction.Commit() in C:\workspace-vs2010\DITFramework\Main\Source\DIT.Persistence.Db.Xpo\XpoTransaction.cs:line 31
   at DIT.Persistence.Support.PersistenceSupport.Commit() in C:\workspace-vs2010\DITFramework\Main\Source\DIT.Persistence\Support\PersistenceSupport.cs:line 149
   at DIT.Security.Authentication.AppDatabase.AuthenticationHandler.FetchAppUser(IUserSession session, String username, Boolean passwordEncryptionActive) in C:\workspace-vs2010\DITFramework\Main\Source\DIT.Security\Authentication\AppDatabase\AuthenticationHandler.cs:line 49
   at DIT.Security.Authentication.AppDatabase.AppDatabaseAuthenticationHandler.Authenticate(String username, String password, String& message, IUserSession session) in C:\workspace-vs2010\DITFramework\Main\Source\DIT.Security\Authentication\AppDatabase\AppDatabaseAuthenticationHandler.cs:line 11
   at DIT.Security.Authentication.AuthenticationManager.Authenticate(String username, String password, String& message, HttpUserSession session) in C:\workspace-vs2010\DITFramework\Main\Source\DIT.Security\Authentication\AuthenticationManager.cs:line 48
   at DIT2.Web.LoginPage.LoginButtonClick(HtmlInputText txtUserName, HtmlInputPassword txtUserPass, Label messageLabel) in c:\workspace-vs2010\DITFramework\Main\Source\DIT2\Web\LoginPage.cs:line 34
   at ePlanNabave4_1.Login.Button2_Click(Object sender, EventArgs e) in C:\Documents and Settings\mtekic\My Documents\source_vs2010\ePlanNabave4_1\ePlanNabave4_1\Login.aspx.cs:line 15
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

Show previous comments (8)
DevExpress Support Team 14 years ago

    Hi Slaven,
    Thank you for the clarification. I will forward this issue to our developers so they can see if there is something in our code that could lead to this exception. We will inform you about the result.
    Thanks,
    Michael.

    Anatol (DevExpress) 14 years ago

      Hello Slaven,
      Our developers have inspected all the information you provided, but have not managed to find out why the issue may occur. Since it was solved after restarting the application, probably it was not directly related to our components, but to some specific of SQL Server or IIS. For now, we will have to close the issue as not reproducible. Please feel free to contact us if it occurs again.
      Thanks,
      Anatol

        OK. I will contact you if problem recur.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.