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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Portal error when enab...
Power Pages
Unanswered

Portal error when enabling Web page Access Control Rule

(0) ShareShare
ReportReport
Posted on by 441

When enabling Web page Access Control rule with Restric Read on a page I get the following error:
Server Error in '/' Application.


The route handler 'Adxstudio.Xrm.Web.Routing.PortalRouteHandler' did not return an IHttpHandler from its GetHttpHandler() method.


I have tested this in all portals that was recently provisioned in the tenant and they all have the same issue. Portal version is 9.3.11.4

Its specific to this tenant and tested it in another with same version number where it works.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Hi @eugenevanstaden , with Web Page Access Control rule you will need to check 2 thigs:

    1- You need to ensure there is a web role associated with the Web Page Access Control so the portal restriction works properly,  ref this url  https://debajmecrm.com/understanding-restrict-read-privilege-in-dynamics-365-portals-powerapps-portals/ 

    2- If you are restricting everything including home page ,simply create a Web Page Access Control Rule of type Restrict Read on the Home page of your Portal – and be sure to set the scope to “Exclude direct child web files” ref https://www.engineeredcode.com/blog/power-apps-portals-no-anonymous-allowed 

     

    i hope this help

  • eugenevanstaden Profile Picture
    441 on at

    Hi @Anonymous 

    Yup - all of that is done - issue still exist in this environment across all 5 portals provisioned. Assume the issue is then on the actual Portal App Service and not Configuration.

    I have tested this in a different tenant and it works as it should. I will escalate via MS support

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I'm having the exact same issue.  Web Page Access Control rule is set up correctly and is associated with a Web Role.  Support ticket open with Microsoft.

     

    FYI, I noticed the Page Template for "Access Denied" was missing in my custom portal.  Microsoft advised I create this manually which I did, but it still hasn't fixed the problem.

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous  this is a great point, i always use Portal Configuration Compare XrmToolBox plugin to find out what is exactly i am missing and it works great.

    Manar_0-1637697356664.png

    Manar_1-1637697441485.png

     

     

     

  • eugenevanstaden Profile Picture
    441 on at

    @Anonymous 

    I've recreated the Access Denied Webpage + Page template with the correct settings. Thanks @Anonymous for checking with MS Support.

    eugenevanstaden_0-1637784948169.png

     



  • JanB1 Profile Picture
    8 on at

    In case anyone else experiences the same issue as OP (we've had the same for a number of newly created portals in the last days), the solution in our case was that the Page Template for the Access Denied page was set to "Default studio template" instead of "Access Denied".

     

    If you go to the Portal Management, check the Web Pages list and click on the Access Denied page. Under the Page Template, check which one is set and select Access Denied if not already set. After setting it, anonymous users should be redirected to the login screen if you have enabled web page access controls.

     

    Thanks to Microsoft Support for indicating this.

  • oexdeveloper Profile Picture
    6 on at

    Having come across this issue similarly when configuring a brand new Portal site, mainly when trying to visit a Page URL directly without authenticating, I get the same issue in the logs.

     

    I found the issue to be a simple change on the Access Denied Web page - against the Page Template setting, was set to use the 'Default studio template', changing this to 'Access Denied' worked fine

  • lnguyenCCC Profile Picture
    4 on at

    I want to add something more besides the Access Denied web page above. In my case, I also needed to go to Page Template, search for the Access Denied template(it was set to Type "Web Template") and change the Type to Rewrite, put the Rewrite Url as "~/Pages/AccessDenied.aspx" then saved it, after that change back the type to Web Template.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard