System.NullReferenceException: Object reference not set to an instance of an object.
   at MuM.Foundation.CrmSalesforce.Services.Internal.SalesforceContactHelper.<>c.<GetIntranetContacts>b__41_1(CrmContact i) in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\Internal\SalesforceContactHelper.cs:line 155
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at MuM.Foundation.CrmSalesforce.Services.Internal.SalesforceContactHelper.GetIntranetContacts() in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\Internal\SalesforceContactHelper.cs:line 153
   at MuM.Foundation.Caching.Services.FallbackCacheServiceBase.Get[T](String key, GetFromSourceDelegate`1 getFromSourceDelegate, Nullable`1 duration) in D:\a\1\s\src\Foundation\Caching\code\Services\FallbackCacheService.cs:line 61
   at MuM.Foundation.CrmSalesforce.Services.Caching.SalesforceFallbackCacheService.Get[T](Keys key, GetFromSourceDelegate`1 getFromSalesforceDelegate) in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\Caching\SalesforceFallbackCacheService.cs:line 30
   at MuM.Foundation.CrmSalesforce.Services.Internal.SalesforceContactHelper.get_AllIntranetContacts() in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\Internal\SalesforceContactHelper.cs:line 133
   at MuM.Foundation.CrmSalesforce.Services.Internal.SalesforceContactHelper.GetIntranetContact(String crmId) in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\Internal\SalesforceContactHelper.cs:line 141
   at MuM.Foundation.CrmSalesforce.Services.SalesforceBlogService.GetAuthor(String crmId) in D:\a\1\s\src\Foundation\CrmSalesforce\code\Services\SalesforceBlogService.cs:line 26
   at MuM.Feature.Blog.Models.Content.CommentViewModel..ctor(Comment comment) in D:\a\1\s\src\Feature\Blog\code\Models\Content\CommentViewModel.cs:line 27
   at MuM.Feature.Blog.Models.Managers.CommentManager.<>c.<LoadForPost>b__1_2(Comment i) in D:\a\1\s\src\Feature\Blog\code\Models\Managers\CommentManager.cs:line 32
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at MuM.Feature.Blog.Models.Managers.CommentManager.LoadForPost(Int32 postId) in D:\a\1\s\src\Feature\Blog\code\Models\Managers\CommentManager.cs:line 28
   at MuM.Feature.Blog.Models.Content.PostViewModel.get_Comments() in D:\a\1\s\src\Feature\Blog\code\Models\Content\PostViewModel.cs:line 112
   at ASP._Views_Feature_Blog_Content_PostDetail_Comments__Container_cshtml.Execute() in D:\a\1\s\src\Feature\Blog\code\obj\CodeGen\Views\Feature\Blog\Content\Views\Feature\Blog\Content\PostDetail\Comments\_Container.cshtml:line 4
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
   at ASP._Views_Feature_Blog_Content_PostDetail_Index_cshtml.Execute() in D:\a\1\s\src\Feature\Blog\code\obj\CodeGen\Views\Feature\Blog\Views\Feature\Blog\Content\PostDetail\Index.cshtml:line 19
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
   at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
   at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
   at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
    
Ähnliche Beiträge
Von Enja Meier | 19.06.2020