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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

ADX Portal error - Object reference not set to an instance of an object.

(0) ShareShare
ReportReport
Posted on by 90

Hi All,

We are executing VSTS load test on ADX portal. during load test we are getting below 500 internal error on website home page.

Not all request getting this error ,many of the requests are able to cross this page without any error. also when we are testing same scenario manually we are not getting any error. what could be the cause of this error .

*** we are using ADX Studio version 7.0.0026

 Object reference not set to an instance of an object.
        at System.Web.Security.Roles.GetRolesForUser(String username)
        at Adxstudio.Xrm.Cms.Security.ContentMapWebPageAccessControlSecurityProvider.TryAssert(WebPageNode page, CrmEntityRight right)
        at Adxstudio.Xrm.Cms.Security.ContentMapWebPageAccessControlSecurityProvider.<>c__DisplayClass2_0.<TryAssert>b__0(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.Cms.Security.ContentMapWebPageAccessControlSecurityProvider.TryAssert(OrganizationServiceContext context, Entity webPage, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Cms.Security.CmsCrmEntitySecurityProvider.UncachedProvider.TestWebPage(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Cms.Security.CmsCrmEntitySecurityProvider.UncachedProvider.InnerTryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Cms.Security.CmsCrmEntitySecurityProvider.UncachedProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Security.ApplicationCachingCrmEntitySecurityProvider.<>c__DisplayClass1_0.<TryAssert>b__0(ObjectCache cache)
        at Microsoft.Xrm.Client.Caching.ObjectCacheProvider.<>c__DisplayClass6`1.<Get>b__5(String key)
        at Microsoft.Xrm.Client.Threading.LockProvider.<>c__DisplayClass5`1.<Get>b__3()
        at Adxstudio.Xrm.Threading.MonitorLockProvider.Lock(String key, Int32 millisecondsTimeout, Action action)
        at Microsoft.Xrm.Client.Threading.LockProvider.Get[T](String key, Int32 millisecondsTimeout, Func`2 loadFromCache, Func`2 loadFromService)
        at Microsoft.Xrm.Client.Threading.LockProvider.Get[T](String key, Func`2 loadFromCache, Func`2 loadFromService)
        at Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get[T](ObjectCache cache, String cacheKey, Func`2 load, Action`2 insert, String regionName)
        at Microsoft.Xrm.Client.Caching.ObjectCacheManager.Get[T](String cacheKey, Func`2 load, Action`2 insert, String regionName)
        at Adxstudio.Xrm.Security.ApplicationCachingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Security.RequestCachingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right, CrmEntityCacheDependencyTrace dependencies)
        at Adxstudio.Xrm.Security.CacheSupportingCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right)
        at Adxstudio.Xrm.Cms.Security.CmsCrmEntitySecurityProvider.TryAssert(OrganizationServiceContext context, Entity entity, CrmEntityRight right)
        at Microsoft.Xrm.Portal.Web.CrmSiteMapProviderBase.ReturnNodeIfAccessible(CrmSiteMapNode node, Func`1 getFallbackNode)
        at Adxstudio.Xrm.Web.ContentMapCrmSiteMapProvider.GetAccessibleNodeOrAccessDeniedNode(ContentMap map, WebPageNode page, IContentMapEntityUrlProvider provider)
        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.ExecuteStepImpl(IExecutionStep step)
        at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi Mahesh,

    As per my personal experience, few things may be the reason for this issue:

    1. Make sure there is no error being displayed in the browser Console while opening the Home Page. If any red error message displayed. Adxstudio gets failed in Performance Testing.

    2, By seeing the stack trace, this issue might be related to web roles also. Double Check, Is there any functionality which links your Home Page with Particular User or web roles.

    2. Disable the 'Page Tracking' option from all webpage. Page Tracking is not supported by the large set of users and it may cause the issue of 500 Internal server error.

    3. Due to any reason, if 5 continuous error comes on the portal in a particular interval of time, Azure automatically stop that webapp which may also cause of 500 error. For example - if user hitting the portal (hosted on Azure) and due to network connectivity, slow requests, internet issue etc, continuous 5 error comes, then Azure webapp stop that webapp and restart again in few seconds. This threshold limit set in Azure Server.

    Refer- https://blogs.msdn.microsoft.com/waws/2015/11/04/auto-heal-your-azure-web-app/

    4. We also had this showstopper issue in Production, and the Portal was getting down with the similar error in every 10 to 15 mins. As per Microsoft, they suggested us to do few changes in web.config file and provided one class file that needs to be added to Adxstudio Master Solution. Also, they had strongly recommended for not using the Page Tracking feature of the web page.

    Unfortunately, now I can not provide you these settings as I have upgraded my portal to D365 and not sure whether Microsoft can help you out to fix this as they are also ending the support in Aug 2018.

    So, I would recommend you to plan for an upgrade - Adxstudio to Dynamics 365 Portal.

    If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.


    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

  • ehsan af Profile Picture
    215 on at

    hi i'm getting same error .

    i am using crm 2016 on-permise .

    where is admin center ?

    i want to reset the portal

    all page in my portal show this error .

    in my crm (2016 on-permise) admin center not exist .

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans