Skip to main content

Notifications

Dynamics 365 general forum
Suggested answer

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

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,247 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans