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

Forums / Bugs & Issues / This type of page is not served.

This type of page is not served.

13 posts, 0 answered
  1. Jim Aderhold
    Jim Aderhold avatar
    48 posts
    Registered:
    29 Feb 2004
    07 Jul 2008
    Link to this post
    This is only happening on 3.2 sites.

    In the Sitefinity admin, after a period of inactivity (and being logged in as administrator), any link I click on inside the admin gives me the following error:

    Server Error in '/MyApp' 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: /myapp/sitefinity/admin/default.aspx


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433


    Only way to resolve this is to replace sitefinity/admin/default.aspx with sitefinity/login.aspx in the browser's address bar. This is where it's trying to go anyways.
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    28 Oct 2016
    08 Jul 2008
    Link to this post
    Hi Jim,

    Please refer to the following KB article and let us know if the case is different.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Richard Baugh
    Richard Baugh avatar
    201 posts
    Registered:
    22 Aug 2012
    08 Jul 2008
    Link to this post
    We are not using ActiveDirectory for the membership rather we are using the Sitefinity membership, and only have one user which is the admin user that was created during the setup. This is happening on our local machine and our development server.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Jul 2008
    Link to this post
    Hello Richard Baugh,

    What authentications types are you using in IIS and what are defined in the web.config file?

    This error could be raised in a scenario like the following:

    1. You are logging with a user via Forms Authentication and the login form.
    2. The authentication cookie expires after some time of inactivity in the Administrative panel.
    3. Following any link in the Admin panel forces login with a user via Windows Integrated Authentication. This user is in a role that does not have an access to the Administrative panel (CMS access permission), and the error is raised.

    You could try granting CMS access to role Everyone and see whether you will replicate the same problem or not.

    Please let us know about the results.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Eric
    Eric avatar
    23 posts
    Registered:
    01 Aug 2007
    10 Jul 2008
    Link to this post
    Here's what's happening. I log into sitefinity as admin. Then in another browser tab I go to test the registration, which automatically logs me in as the new customer. Then when switching back over to the SF admin, I get the page is not served error.

    This error/page occurs until I either:
    a: go to the ~/Sitefinity/login.aspx page directly
    b: log out on the client-side application

    I suppose this is actually working as designed, but I think a more intuitive page such as a login page informing the user they do not have permissions to access the requested page would be more user-friendly.
  6. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Jul 2008
    Link to this post
    Hi Eric,

    You are right that this is the default behaviour. There's a way to catch this error and redirect the user to a friendly/login page. Simply add this code in the Application_Error method, contained in global.asax:
    void Application_Error(object sender, EventArgs e)  
        { 
            Exception ex = Server.GetLastError();   
            if (ex is HttpException)   
            {   
                Telerik.Cms.Exceptions.PageForbiddenHttpException httpEx = ex.InnerException as Telerik.Cms.Exceptions.PageForbiddenHttpException;   
                if (httpEx != null && httpEx.GetHttpCode() == 403)   
                {   
                    Response.Redirect("~/Sitefinity/Login.aspx");   
                    Response.End();   
                }   
            }   
        } 

    The highlighted code is redirecting the user to the default Sitefinity login page. The response could be redirected of course to any other page.

    I hope the provided information is helpful.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Josh
    Josh avatar
    19 posts
    Registered:
    24 Jun 2009
    06 Nov 2009
    Link to this post
    I am having this same issue, but I cannot access the knowledge base.  Can you explain what this article contains?  We are using AD to authenticate, and this issue is happening on our server.  Thanks!
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Nov 2009
    Link to this post
    Hi Josh,

    Please verify the that the roles of your AD provider have been given needed rights - for instance - global permissions for CmsAccess or PageView - Allow.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Scott McNeany
    Scott McNeany avatar
    44 posts
    Registered:
    09 Mar 2010
    08 Jun 2010
    Link to this post
    I am getting the error "

    This type of page is not served.

    " when logging in as one of our 'Approvers'. I can change his role to 'Administrator', and then he can log in, and change it back to 'Approver' and he gets the error again.

    Any thoughts?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Jun 2010
    Link to this post
    Hello Scott McNeany,

    The role Approver does not have View rights or the user belongs to another role where View is Denied - deny permission has higher priority than allow.

    Kind regards,
    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.
  11. Scott McNeany
    Scott McNeany avatar
    44 posts
    Registered:
    09 Mar 2010
    09 Jun 2010
    Link to this post
    Indeed. In the Administration section, this role did not have 'CmsAccess' permission set, nor did the 'Everyone' role. Thanks for your help.
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Jun 2010
    Link to this post
    Hello Scott McNeany,

    I am glad to hear that everything is find right now.

    Kind regards,
    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.
  13. Lucas
    Lucas avatar
    65 posts
    Registered:
    22 Mar 2010
    20 Jul 2010
    Link to this post
    Just a quick note for those looking for a web.config solution:

    Simply put this into the ~\Sitefinity\Web.config file:

    <configuration>
        <appSettings/>
        <connectionStrings/>
        <system.web>
                <pages>
                    <controls>
                        <add tagPrefix="sf" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Cms.Web.UI"/>
                        <add tagPrefix="sf" namespace="Telerik.Cms.Web.UI" assembly="Telerik.Cms"/>
                        <add tagPrefix="sfSec" namespace="Telerik.Security.WebControls" assembly="Telerik.Security"/>
                    </controls>
                </pages>
            <customErrors mode="On">
                <error statusCode="404" redirect="~/Sitefinity/default.aspx" />
                <error statusCode="403" redirect="~/Sitefinity/Login.aspx" />
            </customErrors>
            </system.web>
    </configuration>

    <error statusCode="403" redirect="~/Sitefinity/Login.aspx" />
    will automatically redirect users that have no CMS access to the login page (alternatively, you can put "~/Default.aspx" and they'll be redirected to the public website.

    I hope this helps :)
Register for webinar
13 posts, 0 answered