web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ArgumentNullException in SiteMapNode when accessing any page in portal

(0) ShareShare
ReportReport
Posted on by 1,549

Our AdxStudi Portal goes offline from time to time, without anyone even accessing it. We have no idea why.

When the problem occurs, we need to recycle the application pool on which the portal runs. Then the portal runs fune for a few hours or so.

I've encountered similar posts, but no answer so far.

Here is the log:


System.ArgumentNullException: Value cannot be null.

Parameter name: key

at System.Web.SiteMapNode..ctor(SiteMapProvider provider, String key, String url, String title, String description, IList roles, NameValueCollection attributes, NameValueCollection explicitResourceKeys, String implicitResourceKey)
at Microsoft.Xrm.Portal.Web.CrmSiteMapProviderBase.GetWebPageNode(OrganizationServiceContext context, Entity page, HttpStatusCode statusCode, Func`2 getRewriteUrl)
at Microsoft.Xrm.Portal.Web.CrmSiteMapProviderBase.GetWebPageNode(OrganizationServiceContext context, Entity page, HttpStatusCode statusCode)
at Microsoft.Xrm.Portal.Web.CrmSiteMapProviderBase.GetAccessibleNodeOrAccessDeniedNode(OrganizationServiceContext context, Entity entity)
at Adxstudio.Xrm.Web.CrmSiteMapProvider.FindSiteMapNode(String rawUrl)
at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl, ContentMap map)
at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.<>c__DisplayClass0_0.<FindSiteMapNode>b__1(ContentMap map)
at Adxstudio.Xrm.Cms.ContentMapProvider.<>c__DisplayClass21_0`1.<Using>b__0()
at Adxstudio.Xrm.Cms.ContentMap.<>c__DisplayClass10_0`1.<Using>b__0()
at Adxstudio.Xrm.Cms.ContentMap.Using(ContentMapLockType lockType, Action action)
at Adxstudio.Xrm.Cms.ContentMap.Using[T](ContentMapLockType lockType, Func`1 action)
at Adxstudio.Xrm.Cms.ContentMapProvider.Using[T](ContentMapLockType lockType, Func`2 action)
at Adxstudio.Xrm.Cms.ContentMapProvider.Using[T](Func`2 action)
at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.<>c__DisplayClass0_0.<FindSiteMapNode>b__0()
at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.CachePerRequest[T](String method, String key, Func`1 get)
at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.FindSiteMapNode(String rawUrl)
at Adxstudio.Xrm.AspNet.Cms.PortalContext`3.GetNode(RequestContext request)
at Adxstudio.Xrm.AspNet.Cms.PortalContext`3.<.ctor>b__30_0()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Adxstudio.Xrm.AspNet.Cms.PortalContext`3.<.ctor>b__30_1()
at System.Lazy`1.CreateValue()
at System.Lazy`1.LazyInitValue()
at Adxstudio.Xrm.AspNet.Cms.PortalContext`3.get_Entity()
at Adxstudio.Xrm.Web.Routing.PortalRouteHandler.OnPortalLoaded(RequestContext requestContext, IPortalContext portal)
at Adxstudio.Xrm.Web.Routing.PortalRouteHandler.GetHttpHandler(RequestContext requestContext)
at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

*This post is locked for comments

I have the same question (0)
  • Verified answer
    yleclerc Profile Picture
    1,549 on at
    RE: ArgumentNullException in SiteMapNode when accessing any page in portal

    Turns out we had a couple of web pages without a parent page. That seemed to resolve the issue.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans