Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pinal Bhatt 298 posts 389 karma points
    Feb 09, 2011 @ 12:49
    Pinal Bhatt
    0

    404 handler not working for me in 4.6.1

    Below are my config settings. I have a template called Rss (the one that comes with starter kit).

    I am expecting /Rss.aspx url to work, but i get page not found error as methioned below.

    Web.Config:

    <customErrors mode="Off" />

    umbracoSettings.config

        <errors>
          <!-- the id of the page that should be shown if the page is not found -->
          <!--        <errorPage culture="default">1</errorPage>-->
          <!--        <errorPage culture="en-US">200</errorPage>-->
          <error404>1</error404>
        </errors>

    404handlers.config

    <NotFoundHandlers>
     <notFound assembly="umbraco" type="SearchForAlias" />
     <notFound assembly="umbraco" type="SearchForTemplate"/>
     <notFound assembly="umbraco" type="SearchForProfile"/>
     <notFound assembly="umbraco" type="handle404"/>
    </NotFoundHandlers>

     

    Error message:

    Page not found
    No umbraco document matches the url 'http://pbdesk.com/rss.aspx'
    umbraco tried this to match it using this xpath query'/root/* [@urlName = "rss"] | /root/*/* [@urlName = "rss"]')
    This page can be replaced with a custom 404 page by adding the id of the umbraco document to show as 404 page in the /config/umbracoSettings.config file. Just add the id to the '/settings/content/errors/error404' element.
    For more information, visit information about custom 404 on the umbraco website.
    This page is intentionally left ugly ;-)
  • Seth Niemuth 275 posts 397 karma points
    Feb 09, 2011 @ 16:31
    Seth Niemuth
    0

    For your 404 handler to go to a page you created, you need to specify the node ID of your page in (replacing 1 with the node id of your page):

     <error404>1</error404>

  • Pinal Bhatt 298 posts 389 karma points
    Feb 09, 2011 @ 16:38
    Pinal Bhatt
    0

    But i dont have any specific page. I want it to be handled by SearchForTemplate and go to the tempalte page.

    I do have RSS temmplate. To my understanding <error404>1</error404> should come into picture after all <NotFoundHandlers> are taken care from 404handlers.config file.

  • Pinal Bhatt 298 posts 389 karma points
    Feb 10, 2011 @ 15:07
    Pinal Bhatt
    0

    Anybody any help? Please.

  • Pinal Bhatt 298 posts 389 karma points
    Feb 16, 2011 @ 15:51
    Pinal Bhatt
    0

    Expecting support from friendliest CMS community on the planet!!!

  • Seth Niemuth 275 posts 397 karma points
    Feb 16, 2011 @ 16:51
    Seth Niemuth
    0

     

    What is the exact name of your masterpage?

    When I go to: http://pbdesk.com/rss.aspx I am getting a page, so is it working?

  • Pinal Bhatt 298 posts 389 karma points
    Feb 16, 2011 @ 16:55
    Pinal Bhatt
    0

    That is because i have created another content page with the name RSS. As i was not getting solution i created a new content page with that name.

    i have renamed that page now to rss1.aspx which works file. Now i have template/masterpage named Rss and i get same error back.

  • Pinal Bhatt 298 posts 389 karma points
    Mar 08, 2011 @ 15:02
    Pinal Bhatt
    0

    Anybody any help? Please.

Please Sign in or register to post replies

Write your reply to:

Draft