Server Error in '/' Application.

Transaction (Process ID 144) 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 144) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): Transaction (Process ID 144) 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, Action`1 wrapCloseInAction) +277
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +764
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4620
   System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows) +253
   System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) +295
   System.Data.SqlClient.SqlDataReader.Read() +38
   NHibernate.Driver.NHybridDataReader.Read() +22
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) +2160
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) +225
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) +182

[GenericADOException: could not execute query
[ select articlegro0_.ArticleGroupID as articlegroupid1_79_, articlegro0_.ParentID as parentid2_79_, articlegro0_.MirrorID as mirrorid3_79_, articlegro0_.Name as name4_79_, articlegro0_.Code as code5_79_, articlegro0_.Level as level6_79_, articlegro0_.SortIndex as sortindex7_79_, articlegro0_.Enabled as enabled8_79_, articlegro0_.UrlSegment as urlsegment9_79_, articlegro0_.TopMenuColumn as topmenucolumn10_79_, articlegro0_.SearchResultPriority as searchresultpriority11_79_, articlegro0_.ArticleGroupPath as articlegrouppath12_79_, articlegro0_.VisibleInMenu as visibleinmenu13_79_, articlegro0_.ContentText as contenttext14_79_, articlegro0_.ContentText2 as contenttext15_79_, articlegro0_.ImagePath as imagepath16_79_, articlegro0_.MenuDescriptionText as menudescriptiontext17_79_, articlegro0_.TranslatedArticleGroupPath as translatedarticlegrouppath18_79_, articlegro0_.MetaTitle as metatitle19_79_, articlegro0_.MetaDescription as metadescription20_79_, articlegro0_.Heading as heading21_79_, articlegro0_.BackgroundColor as backgroundcolor22_79_, articlegro0_.BackgroundImage as backgroundimage23_79_, articlegro0_.MenuText as menutext24_79_, articlegro0_.AllowDuplicatesInCart as allowduplicatesincart25_79_, articlegro0_.GlobalSortIndex as globalsortindex26_79_, articlegro0_.IsDefault as isdefault27_79_, articlegro0_.RoleLevels as rolelevels28_79_, articlegro0_.ShowCampaigns as showcampaigns29_79_, articlegro0_.IsHidden as ishidden30_79_, articlegro0_.DefaultListView as defaultlistview31_79_ from dbo.ArticleGroups articlegro0_ where articlegro0_.Enabled=1 and articlegro0_.ArticleGroupPath=@p0 ORDER BY CURRENT_TIMESTAMP OFFSET 0 ROWS FETCH FIRST 1 ROWS ONLY ]
  Name:p1 - Value:produkter/instrument-utrustning/kirurgiska-instrument/tanger/tang-iud-o3mm-20cm-13393.html [Type: NHibernate.Type.AnsiStringType (SqlType: AnsiString)]
[SQL: select articlegro0_.ArticleGroupID as articlegroupid1_79_, articlegro0_.ParentID as parentid2_79_, articlegro0_.MirrorID as mirrorid3_79_, articlegro0_.Name as name4_79_, articlegro0_.Code as code5_79_, articlegro0_.Level as level6_79_, articlegro0_.SortIndex as sortindex7_79_, articlegro0_.Enabled as enabled8_79_, articlegro0_.UrlSegment as urlsegment9_79_, articlegro0_.TopMenuColumn as topmenucolumn10_79_, articlegro0_.SearchResultPriority as searchresultpriority11_79_, articlegro0_.ArticleGroupPath as articlegrouppath12_79_, articlegro0_.VisibleInMenu as visibleinmenu13_79_, articlegro0_.ContentText as contenttext14_79_, articlegro0_.ContentText2 as contenttext15_79_, articlegro0_.ImagePath as imagepath16_79_, articlegro0_.MenuDescriptionText as menudescriptiontext17_79_, articlegro0_.TranslatedArticleGroupPath as translatedarticlegrouppath18_79_, articlegro0_.MetaTitle as metatitle19_79_, articlegro0_.MetaDescription as metadescription20_79_, articlegro0_.Heading as heading21_79_, articlegro0_.BackgroundColor as backgroundcolor22_79_, articlegro0_.BackgroundImage as backgroundimage23_79_, articlegro0_.MenuText as menutext24_79_, articlegro0_.AllowDuplicatesInCart as allowduplicatesincart25_79_, articlegro0_.GlobalSortIndex as globalsortindex26_79_, articlegro0_.IsDefault as isdefault27_79_, articlegro0_.RoleLevels as rolelevels28_79_, articlegro0_.ShowCampaigns as showcampaigns29_79_, articlegro0_.IsHidden as ishidden30_79_, articlegro0_.DefaultListView as defaultlistview31_79_ from dbo.ArticleGroups articlegro0_ where articlegro0_.Enabled=1 and articlegro0_.ArticleGroupPath=@p0 ORDER BY CURRENT_TIMESTAMP OFFSET 0 ROWS FETCH FIRST 1 ROWS ONLY]]
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) +508
   NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) +33
   NHibernate.Loader.Hql.QueryLoader.List(ISessionImplementor session, QueryParameters queryParameters) +108
   NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.List(ISessionImplementor session, QueryParameters queryParameters) +443
   NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) +753
   NHibernate.Impl.SessionImpl.List(IQueryExpression queryExpression, QueryParameters queryParameters, IList results, Object filterConnection) +346
   NHibernate.Impl.SessionImpl.List(IQueryExpression queryExpression, QueryParameters queryParameters, IList results) +16
   NHibernate.Impl.AbstractSessionImpl.List(IQueryExpression queryExpression, QueryParameters parameters) +223
   NHibernate.Impl.AbstractQueryImpl2.List() +175
   NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) +41
   NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) +54
   NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) +26
   Swh.Pwb.Controllers2.Public.ArticleGroupController.GetArticleGroup(String urlSegment, String articleGroupPath) in C:\Users\Mattias\Documents\Webbprojekt\Pyramidbutik\common\Swh.Pwb.Controllers2\Controllers\Public\ArticleGroupController.cs:343
   Swh.Pwb.Controllers2.Public.ArticleGroupController.Index2(String path, Int32 page, Uri referrer, String sortOrder) in C:\Users\Mattias\Documents\Webbprojekt\Pyramidbutik\common\Swh.Pwb.Controllers2\Controllers\Public\ArticleGroupController.cs:190
   lambda_method(Closure , ControllerBase , Object[] ) +297
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +77
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0() +80
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +387
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__4() +50
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0