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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by 1,880

Dears,

Kindly i need help on below error , i can't browse CRM

Object reference not set to an instance of an object

pastedimage1589474282917v1.png

and below from Tracing file 

# CRM Tracing Version 2.0
# LocalTime: 2020-05-14 15:07:54.634
# Categories:
# CallStackOn: No
# ComputerName: XXX
# CRMVersion: 8.1.0.359
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools, VssWriter, EmailConnector

[2020-05-14 15:07:54.634] Process: w3wp |Organization:1ef83a71-64ee-4056-a927-4735099f8c8b |Thread: 17 |Category: Platform.Authentication |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: a322310c-3d18-40a5-b1eb-7248147c8dd5 | AuthenticationStep.Authenticate ilOffset = 0x4E
>HostName: XXX, UserId: {F7149E39-BE03-EA11-80EA-00155D643223}, Context: AuthenticationStep.Authenticate(), Exception details: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Metadata.ResourcePropertyProvider.PopulateResourceProperty(OneToManyEntityRelationship relationship, IMetadataCacheDataProvider metadataCacheProvider)
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.PopulateEntityResourceTypes()
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.Initialize(IOrganizationContext organizationContext, MetadataContainer container, LoadMasks masks)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.CreateMetadataCacheDataProvider(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromMetadataContainer(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)
at Microsoft.Crm.Metadata.MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)
at Microsoft.Crm.Metadata.MetadataCache.GetInstance(IOrganizationContext context)
at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.ValidateUserEnabled(Guid userId, Guid organizationId)
at Microsoft.Crm.Authentication.Claims.AuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
[2020-05-14 15:07:54.697] Process: w3wp |Organization:1ef83a71-64ee-4056-a927-4735099f8c8b |Thread: 17 |Category: Platform.Authentication |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: a322310c-3d18-40a5-b1eb-7248147c8dd5 | AuthenticationEngine.Execute ilOffset = 0x170
>HostName: XXXX, UserId: {F7149E39-BE03-EA11-80EA-00155D643223}, Context: AuthenticationEngine.Execute(), StatusCode: '200', Exception details: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Metadata.ResourcePropertyProvider.PopulateResourceProperty(OneToManyEntityRelationship relationship, IMetadataCacheDataProvider metadataCacheProvider)
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.PopulateEntityResourceTypes()
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.Initialize(IOrganizationContext organizationContext, MetadataContainer container, LoadMasks masks)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.CreateMetadataCacheDataProvider(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromMetadataContainer(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)
at Microsoft.Crm.Metadata.MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)
at Microsoft.Crm.Metadata.MetadataCache.GetInstance(IOrganizationContext context)
at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.ValidateUserEnabled(Guid userId, Guid organizationId)
at Microsoft.Crm.Authentication.Claims.AuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)
[2020-05-14 15:17:04.736] Process: w3wp |Organization:1ef83a71-64ee-4056-a927-4735099f8c8b |Thread: 11 |Category: Platform.Authentication |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 42f1b512-d890-4a8c-9917-60ddae0f3402 | AuthenticationStep.Authenticate ilOffset = 0x4E
>HostName: XXXXX, UserId: {C2A26BD7-EA5D-EA11-80C5-00155D6448BC}, Context: AuthenticationStep.Authenticate(), Exception details: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Metadata.ResourcePropertyProvider.PopulateResourceProperty(OneToManyEntityRelationship relationship, IMetadataCacheDataProvider metadataCacheProvider)
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.PopulateEntityResourceTypes()
at Microsoft.Crm.Metadata.PreloadedMetadataCacheDataProvider.Initialize(IOrganizationContext organizationContext, MetadataContainer container, LoadMasks masks)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.CreateMetadataCacheDataProvider(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.BuildMetadataCacheFromMetadataContainer(MetadataContainer container, LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabaseInternal(LoadMasks masks, CrmDbConnection connection, CrmTransaction transaction, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheLoader.LoadCacheFromDatabase(LoadMasks masks, CounterList counter)
at Microsoft.Crm.Metadata.DynamicMetadataCacheFactory.LoadMetadataCache(LoadMethod method, CacheType type, IOrganizationContext context)
at Microsoft.Crm.Metadata.MetadataCache.LoadCache(IOrganizationContext context, Boolean fileOnlyIfExists)
at Microsoft.Crm.Metadata.MetadataCache.GetInstance(IOrganizationContext context)
at Microsoft.Crm.Caching.UserDataCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
at Microsoft.Crm.BusinessEntities.SecurityLibrary.ValidateUserEnabled(Guid userId, Guid organizationId)
at Microsoft.Crm.Authentication.Claims.AuthenticationProvider.Authenticate(HttpApplication application)
at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

I have the same question (0)
  • Suggested answer
    saurabhtiwarii Profile Picture
    Microsoft Employee on at

    Hey Mostafa,

    If I look at the traces, I can see calls going on to the AuthenticationEngine which is a bit weird as the IIS serves 404 not found.

    at Microsoft.Crm.BusinessEntities.SecurityLibrary.ValidateUserEnabled(Guid userId, Guid organizationId)

    at Microsoft.Crm.Authentication.Claims.AuthenticationProvider.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

    Is this for all of the users or just you, if it's just for your user account. You may need to connect with one of the working users who has System admin role to assign a security role to your user account.

    If this is for all of the users, chances are that this organization could be a newly imported org and the import did not complete as expected. In such case, try to import the org again using a deployment admin user account.

    Sometimes a simple IIS reset may help if this is an issue with the cached data/configuration changes on the server.

    Check if the CRM IIS website doesn't have any host headers configured, if it has remove them a perform IIS reset.

    Also, ensure that the DNS name used to access CRM website resolves to the CRM server which hosts the CRM IIS website. If you have multiple IIS websites hosted on the CRM server, temporarily disable them to avoid any conflict with the web services.

    If you have claims and IFD configured, please try to disable it temporarily. Change the internal web address of CRM server to the Physical server name with the custom IIS port number if used any. Check if hen CRM is accessible.

    The Verbose traces may shed some more lights as well in case the above suggestions do not help or is not applicable in your case.

    support.microsoft.com/.../how-to-enable-tracing-in-microsoft-dynamics-crm

    Please mark my comments as answered if this helps. 

    Thanks,

    Saurabh

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 107 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 92

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans