+1-888-365-2779
Try Now
More in this section

Forums / Security / "This type of page is not served."

"This type of page is not served."

5 posts, 0 answered
  1. Michael
    Michael avatar
    35 posts
    Registered:
    04 Nov 2010
    06 Nov 2010
    Link to this post
    1) If I login using an account that does not belong to the Administrators role, I get the following error. In this case, authorization is successful (I'm assuming), but authorization is failing, resulting in the following error:

    Server Error in '/SiteFinityTest1' Application.

    This type of page is not served.

    Description: The type of page you have requested is not served because it has been explicitly forbidden.  The extension '.aspx' may be incorrect.   Please review the URL below and make sure that it is spelled correctly.

    Requested URL: /SiteFinityTest1/Sitefinity/Admin/Default.aspx


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

    2) If I login using an account that belongs to the Administrators role, everything's fine. In this case, authentication and authorization is succeeding.

    3) If I login using an invalid username or password, I get a friendly "unsuccessful" message. In this case, authentication's failed, so the authorization phase hasn't yet been reached.

    Shouldn't I be getting a friendly unauthorized message upon scenario #1?

    This is what my telerik\security\roles node looks like in the web.config file:

          <roles>
            <clear />
            <add name="Administrators" permission="Unrestricted" />
          </roles>

    I have one role and one membership Active Directory provider defined in my web.config file:--both providers authenticate fine, so authentication doesn't seem to be the problem here.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    07 Nov 2010
    Link to this post
    Hello Michael,

    The page is "explicitly forbidden." if you have not set CmsAccess for the users' role under Administration >> Permissions. The friendly message is thrown when you configure customErrors for your website.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Michael
    Michael avatar
    35 posts
    Registered:
    04 Nov 2010
    10 Nov 2010
    Link to this post
    Is there a response code associated with this error? I'd like to handle in a more visually appealing fashion, as opposed to this way. Thanks.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    10 Nov 2010
    Link to this post
    Hello Michael,

    You can get the exception in Global.asax Application _Error and add some custom logic there. But the customErrors element does the same. You have to set redirect  property of the error element as shown in the article I sent you.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Michael
    Michael avatar
    35 posts
    Registered:
    04 Nov 2010
    10 Nov 2010
    Link to this post
    It looks like there was already a custom error setup for that code, except the "Mode" was set to "Off". Now it works, thanks.
Register for webinar
5 posts, 0 answered