说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 800: {
行 801: GroupEntity group = groupRepository.Get(groupId);
行 802: if (group.UserId == userId)
行 803: return GroupMemberRole.Owner;
行 804: return GroupMemberRole.None;
|
源文件: E:\WorkSpace\jinhu\Web\Applications\Group\Services\GroupService.cs 行: 802
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。] Spacebuilder.Group.GroupService.GetGroupMemberRole(Int64 groupId, Int64 userId) in E:\WorkSpace\jinhu\Web\Applications\Group\Services\GroupService.cs:802 Spacebuilder.Group.GroupService.IsManager(Int64 groupId, Int64 userId) in E:\WorkSpace\jinhu\Web\Applications\Group\Services\GroupService.cs:755 Spacebuilder.Group.GroupTenantAuthorizationHandler.IsTenantManager(IUser currentUser, Int64 tenantOwnerId) in E:\WorkSpace\jinhu\Web\Applications\Group\Configuration\GroupTenantAuthorizationHandler.cs:37 Tunynet.Common.AuthorizationService.IsTenantManager(IUser currentUser, String tenantTypeId, Int64 tenantOwnerId) in E:\WorkSpace\jinhu\BusinessComponents\Regulate\Permission\AuthorizationService.cs:114 Spacebuilder.Common.Authorizer.Tag_Edit(Tag tag) in E:\WorkSpace\jinhu\Common\Authorizer.cs:369 ASP._Page_Applications_Group_Views_ChannelGroup_ListByTag_cshtml.Execute() in e:\WorkSpace\jinhu\Web\Applications\Group\Views\ChannelGroup\ListByTag.cshtml:30 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125 Tunynet.UI.ThemedWebViewPage.ExecutePageHierarchy() in E:\WorkSpace\jinhu\BusinessComponents\UI\Themes\ThemedWebViewPage.cs:50 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90 Tunynet.UI.ThemedRazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) in E:\WorkSpace\jinhu\BusinessComponents\UI\Themes\ThemedRazorView.cs:130 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +176 System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +88 System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +102 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +42 System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +54 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +44 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23 System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +46 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9628700 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155 |
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18045