Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Deleted the Administrator web role. Added it back but portal is still broken.

(0) ShareShare
ReportReport
Posted on by 129

The "Administrators" web role was deleted by accident.  I added it back using Portal Record Mover in XRM Toolbox.  I then restored the Website Access Permissions, Webpage Access Control rules and the Entity permissions but it's still throwing the same error.  The strange thing is that other web roles are now broken also.  Here is the error:

[NullReferenceException: Object reference not set to an instance of an object.]
   Adxstudio.Xrm.Cms.Security.<>c.<TryAssertRightProperty>b__8_0(WebRoleNode role) in S:\Framework\Adxstudio.Xrm\Cms\Security\WebsiteAccessPermissionProvider.cs:167
  • Suggested answer
    Iron Arm Profile Picture
    Iron Arm 129 on at
    RE: Deleted the Administrator web role. Added it back but portal is still broken.

    After restoring the Administrator role you must also restore related Entity Permissions, Website Access Permissions, Webpage Access Control.  But even then it kept throwing the same error.  I had to restart the portal.  Then it started working.

  • Iron Arm Profile Picture
    Iron Arm 129 on at
    RE: Deleted the Administrator web role. Added it back but portal is still broken.

    Yes, I had to add back all the Website Access Permissions, Webpage Access Control rules and the Entity permissions.  They were all gone.  But  it's still broken.

  • erhan.keskin Profile Picture
    erhan.keskin 2,249 on at
    RE: Deleted the Administrator web role. Added it back but portal is still broken.

    Hi,

    After having the Administrator web role back, have you checked "Website Access Permissions", "Entity Permissions", "Contacts"? I wonder if the relations are broken with Administrator web role.

    Regards,

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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans