While publishing any component in solution, it gives me error as shown in below:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.OutputComponents(XmlWriter treeXmlWriter, String solutionId)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.GetSolutionComponentsXml(String solutionId)
at Microsoft.Crm.Core.Application.WebServices.SolutionWebService.RefreshNavigationTree(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8A4A2E3BDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>06e52ca6-bcc3-44fd-b766-6876995a51dc</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.OutputComponents(XmlWriter treeXmlWriter, String solutionId)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.GetSolutionComponentsXml(String solutionId)
at Microsoft.Crm.Core.Application.WebServices.SolutionWebService.RefreshNavigationTree(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8A4A2E3B</Message>
<Timestamp>2018-01-23T05:56:48.5101152Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>
Can anyone please help me to resolve this issue ?
*This post is locked for comments
Radu, Thanks for pointing me further in the right direction. Let me try with this solution.
Hi Pravin,
From the call stack it looks to be somehow related to a security role / privillege : "at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)
"
Do you have any custom security roles within your solutions? If yes, to narrow down maybe you can try to remove/delete them from the solution and then try to publish again and see if that works.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156