An error has occurred


NHibernate.Exceptions.GenericADOException: could not initialize a collection: [EGUMA.Core.DomainModel.Resource.Values#d1500edd-f48d-41ec-b71d-28b85827a661][SQL: SELECT values0_.TextId as TextId1_, values0_.TextLanguageId as TextLang1_1_, values0_.TextLanguageId as TextLang1_17_0_, values0_.MandantId as MandantId17_0_, values0_.SystemLanguageId as SystemLa3_17_0_, values0_.Text as Text17_0_, values0_.TextId as TextId17_0_ FROM TextLanguage values0_ WHERE values0_.TextId=?] ---> System.Data.SqlClient.SqlException: Transaction (Process ID 104) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at NHibernate.Driver.NHybridDataReader.Read() at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) --- End of inner exception stack trace --- at NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) at NHibernate.Loader.Collection.CollectionLoader.Initialize(Object id, ISessionImplementor session) at NHibernate.Persister.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) at NHibernate.Event.Default.DefaultInitializeCollectionEventListener.OnInitializeCollection(InitializeCollectionEvent event) at NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing) at NHibernate.Collection.AbstractPersistentCollection.ForceInitialization() at NHibernate.Engine.StatefulPersistenceContext.InitializeNonLazyCollections() at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) at NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet`1 querySpaces, IType[] resultTypes) at NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session) at NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) at NHibernate.Impl.CriteriaImpl.List(IList results) at NHibernate.Impl.CriteriaImpl.List[T]() at NHibernate.Criterion.QueryOver`1.List() at NHibernate.Criterion.QueryOver`1.NHibernate.IQueryOver<TRoot>.List() at EGUMA.Core.Infrastructure.Repositories.Core.RepositoryCore`1.ExeOne(RepositorySyntaxOneData`1 data, Boolean throwException) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\Infrastructure\Repositories\Core\RepositoryCore.cs:line 183 at EGUMA.Core.Infrastructure.Repositories.Core.RepositorySyntaxOne`1.TryExe() in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\Infrastructure\Repositories\Core\RepositorySyntaxOne.cs:line 52 at EGUMA.Core.DomainModel.Services.ResourceService.TryGetResource(String label, String mandantId, Boolean suppressCache) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DomainModel\Services\ResourceService.cs:line 132 at EGUMA.Core.DomainModel.Services.ResourceService.RawValue(String label, String langId, String mandantId) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DomainModel\Services\ResourceService.cs:line 312 at EGUMA.Core.DomainModel.Services.ResourceService.GetValue(String label, String langId, String mandantId, ResourceParam[] paramList) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DomainModel\Services\ResourceService.cs:line 229 at EGUMA.Core.VTData.GetDescriptionText(String langId) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DCVT.cs:line 629 at EGUMA.Core.VT.GetDescription(String langId) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DCVT.cs:line 39 at EGUMA.Store.Components.VoucherProductDetailsResponsive.VoucherProductDetailsResponsiveController.<GetProductViewModel>b__19_0() in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Store\Components\VoucherProductDetailsResponsive\VoucherProductDetailsResponsiveController.cs:line 340 at EGUMA.Core.DomainModel.Services.CachingService.Retrieve[T](String key, Nullable`1 validFor, Func`1 getFromDb) in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Core\DomainModel\Services\CachingService.cs:line 52 at EGUMA.Store.Components.VoucherProductDetailsResponsive.VoucherProductDetailsResponsiveController.GetProductViewModel() in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Store\Components\VoucherProductDetailsResponsive\VoucherProductDetailsResponsiveController.cs:line 308 at EGUMA.Store.Components.VoucherProductDetailsResponsive.VoucherProductDetailsResponsiveController.Index() in C:\TeamCity\buildAgent2\work\d6f53f0a2efb3312\Solutions\EGUMA.Store\Components\VoucherProductDetailsResponsive\VoucherProductDetailsResponsiveController.cs:line 109