Umbraco 7未加载会员类型

时间:2014-11-28 11:43:32

标签: umbraco umbraco7

我已成功将Umbraco 4.11升级到Umbraco 7.1.8。一切正常,但当我尝试访问umbraco面板中的成员类型时,我收到错误。enter image description here

当我在Firebug中检查错误详细信息时,它是:

{“Message”:“发生错误。”,“ExceptionMessage”:“已添加具有相同键的项目。”,“ExceptionType”:“System.ArgumentException”,“StackTrace”:“at System.ChrowHelper.ThrowArgumentException(ExceptionResource资源)\ r \ n在System.Collections.Generic.Dictionary 2.Insert(TKey key, TValue value, Boolean add)\r\n at System.Collections.Generic.Dictionary 2.Add(TKey key,TValue value)\ r \ n在Umbraco.Core.Persistence.Factories.MemberTypeReadOnlyFactory .GetPropertyTypes(MemberTypeReadOnlyDto dto,MemberType memberType,Dictionary 2 standardProps)\r\n at Umbraco.Core.Persistence.Factories.MemberTypeReadOnlyFactory.BuildEntity(MemberTypeReadOnlyDto dto)\r\n at System.Linq.Enumerable.WhereSelectListIterator 2.MoveNext()\ r \ n at System.Linq.Enumerable.WhereEnumerableIterator 1.MoveNext()\r\n at System.Linq.Buffer 1..ctor(IEnumerable 1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable 1 source )\ r \ n在Umbraco.Core.Persistence.Repositories.RepositoryBase 2.GetAll(TId[] ids)\r\n at Umbraco.Core.Services.MemberTypeService.GetAll(Int32[] ids)\r\n at umbraco.cms.businesslogic.member.MemberType.get_GetAll()\r\n at umbraco.loadMemberTypes.Render(XmlDocument& Tree)\r\n at umbraco.loadMemberTypes.Render(XmlTree& tree)\r\n at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetXmlTree(ApplicationTree appTree, String id, FormDataCollection formCollection)\r\n at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromLegacyTree(ApplicationTree appTree, String id, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)\r\n at Umbraco.Web.Trees.LegacyTreeController.GetTreeNodes(String id, FormDataCollection queryStrings)\r\n at Umbraco.Web.Trees.TreeControllerBase.GetNodes(String id, FormDataCollection queryStrings)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.<GetExecutor>b__c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func 1 func,CancellationToken cancellationToken)“}

1 个答案:

答案 0 :(得分:3)

当数据库中出现重复字段时,通常会发生此问题。更新数据库时可以创建此重复。同样的情况,我将Umbraco从版本4升级到版本7.1.8。有一个名为nforum的第三方插件,它有会员类型重复问题。我通过回到原始版本(4.11)解决了这个问题,卸载了nForum插件,然后在7.1.8版本上再次更新。