1

Closed

Create 2nd content with projectionPart results in unhandled exception

description

In 1.7.1 when I create a second content item of a contenttype which has a projectionPart it crashes and gives me the following exception:

Update: Nevermind. The exception was that I had two contenttypes with the same name in the database :)

An unhandled exception has occurred and the request was terminated. Please refresh the page. If the error persists, go back
Sequence contains more than one element
System.InvalidOperationException: Sequence contains more than one element at NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery) at NHibernate.Linq.DefaultQueryProvider.Execute(Expression expression) at NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression expression) at System.Linq.Queryable.SingleOrDefault[TSource](IQueryable1 source) at Orchard.Data.Repository1.Get(Expression1 predicate) at Orchard.Data.Repository1.Orchard.Data.IRepository<T>.Get(Expression1 predicate) at Orchard.ContentManagement.DefaultContentManager.<>c__DisplayClass84.<AcquireContentTypeRecord>b__83(AcquireContext1 ctx) at Orchard.Caching.Cache2.CreateEntry(TKey k, Func2 acquire) at Orchard.Caching.Cache2.AddEntry(TKey k, Func2 acquire) at Orchard.Caching.Cache2.<>c__DisplayClass2.<Get>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.AddOrUpdate(TKey key, Func2 addValueFactory, Func3 updateValueFactory) at Orchard.Caching.Cache2.Get(TKey key, Func2 acquire) at Orchard.Caching.DefaultCacheManager.Get[TKey,TResult](TKey key, Func2 acquire) at Orchard.ContentManagement.DefaultContentManager.AcquireContentTypeRecord(String contentType) at Orchard.ContentManagement.DefaultContentManager.Create(ContentItem contentItem, VersionOptions options) at Orchard.Localization.Controllers.AdminController.TranslatePOST(Int32 id, Action1 conditionallyPublish) at Orchard.Localization.Controllers.AdminController.TranslatePOST(Int32 id) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary2 parameters) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass13.<InvokeActionMethodWithFilters>b__10() at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
Closed Nov 8, 2013 at 5:38 PM by sebastienros

comments

Znowman wrote Nov 8, 2013 at 12:31 PM

Nevermind. The exception was that I had two contenttypes with the same name in the database :)