1

有人可以给我建议吗?我有一个功能齐全的果园网站,内容齐全,一切都很好。但是,到目前为止,我只使用过 DEFAULT ADMIN 帐户。我添加了模块,一切都完成了。

现在我想添加一个仅用于编辑和添加内容并且不能说添加模块等的用户。我创建了一个新用户并批准了他们,然后我尝试登录他们并且站点崩溃了。然后我无法重新进入。我必须回收应用程序池才能以管理员身份重新进入。有人见过这个吗?

[ObjectNotFoundException: No row with the given identifier exists[Orchard.Roles.Models.PermissionRecord#27]]
   NHibernate.Impl.DefaultEntityNotFoundDelegate.HandleEntityNotFound(String entityName, Object id) +56
   NHibernate.Proxy.AbstractLazyInitializer.CheckTargetState() +48
   NHibernate.Proxy.AbstractLazyInitializer.Initialize() +89
   NHibernate.ByteCode.Castle.LazyInitializer.Intercept(IInvocation invocation) +123
   Castle.DynamicProxy.AbstractInvocation.Proceed() +81
   PermissionRecordProxy1b0b6ea8f5864e2c9211eba674e34740.get_Name() +84
   Orchard.Roles.Services.RoleService.GetPermissionsForRole(Int32 id) +133
   Orchard.Roles.Services.RoleService.GetPermissionsForRoleByNameInner(String name) +37
   Orchard.Roles.Services.<>c__DisplayClasse.<GetPermissionsForRoleByName>b__d(AcquireContext`1 ctx) +26
   Orchard.Caching.Cache`2.CreateEntry(TKey k, Func`2 acquire) in c:\Build\Orchard\src\Orchard\Caching\Cache.cs:57
   Orchard.Caching.<>c__DisplayClass2.<Get>b__0(TKey k) in c:\Build\Orchard\src\Orchard\Caching\Cache.cs:19
   System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory) +125
   Orchard.Caching.Cache`2.Get(TKey key, Func`2 acquire) in c:\Build\Orchard\src\Orchard\Caching\Cache.cs:17
   Orchard.Caching.DefaultCacheManager.Get(TKey key, Func`2 acquire) in c:\Build\Orchard\src\Orchard\Caching\DefaultCacheManager.cs:33
   Orchard.Roles.Services.RoleService.GetPermissionsForRoleByName(String name) +100
   Orchard.Roles.Services.RolesBasedAuthorizationService.TryCheckAccess(Permission permission, IUser user, IContent content) +561
   Orchard.Security.Authorizer.Authorize(Permission permission, IContent content, LocalizedString message) in c:\Build\Orchard\src\Orchard\Security\Authorizer.cs:72
   Orchard.Security.Authorizer.Authorize(Permission permission) in c:\Build\Orchard\src\Orchard\Security\Authorizer.cs:60
   Orchard.Security.SecurityFilter.OnAuthorization(AuthorizationContext filterContext) in c:\Build\Orchard\src\Orchard\Security\SecurityFilter.cs:24
   System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor) +103
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +329
   System.Web.Mvc.Controller.ExecuteCore() +115
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +94
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21
   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12
   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +31
   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7
   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +23
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +59
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in c:\Build\Orchard\src\Orchard\Mvc\Routes\ShellRoute.cs:147
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8970061
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
4

1 回答 1

1

似乎它与该用户的角色有关。他有吗?有没有可能他的角色消失了?尝试删除有问题的角色。

于 2012-10-31T16:25:42.760 回答