Copied to clipboard

Flag this post as spam?

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


  • Anders Burla 2560 posts 8256 karma points
    Jan 09, 2012 @ 17:05
    Anders Burla
    0

    404 site shows IIS 404 page instead of umbraco 404 page

    Hi

    I have a windows server 2008 R2 server with IIS 7 running a umbraco 4.7.1 website using .NET 4.0. At some (unknown) time the 404 page of umbraco started not showing when I request a URL that doesnt exists. I have the original 404handlers.config - folder permissions i correctly. Do anyone have an idea of what could be wrong and how to fix it?

    Kind regards
    Anders

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 09, 2012 @ 18:06
    Jan Skovgaard
    0

    Hi Anders

    What does the <errorPage> element in your umbracoSettings.config look like?

    /Jan

  • Anders Burla 2560 posts 8256 karma points
    Jan 09, 2012 @ 19:25
    Anders Burla
    0

    Hi Jan

    <errors>
      <error404>1051</error404>
    <errors>

    Changed it to test with errorPage as well and doesnt work either

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 10, 2012 @ 08:13
    Jan Skovgaard
    0

    Hmmm, yeah that should be working.

    Have there been any modifications to the web.config or on IIS that overrules this?

    /Jan

  • Anders Burla 2560 posts 8256 karma points
    Jan 10, 2012 @ 10:10
    Anders Burla
    0

    We updated umbraco from 4.6.1 to 4.7.1 but saved all config files and merged them after update - so should be as before. We have the same problem on many of our other umbraco sites where we updated from IIS6 to IIS7. But dont know when it started happening to not work - so need somehow to get an idea of what to try and change to see if it helps. But as of now it looks like umbraco doesnt get the change to do the 404 page as IIS overrules - so some way to stop IIS from doing this is maybe the place to start - but dont know how.

    Kind regards
    Anders

  • Rich Green 2246 posts 4008 karma points
    Jan 10, 2012 @ 10:18
    Rich Green
    0

    Hey Anders,

    I know Chriztian had simular problems a while back, anything here that helps?  http://our.umbraco.org/forum/getting-started/installing-umbraco/25344-How-are-you-getting-a-simple-404-error-page-working

    Rich

  • Anders Burla 2560 posts 8256 karma points
    Jan 11, 2012 @ 15:36
    Anders Burla
    0

    Hi Rich

    Thanks for the link - i tried the httpErrors in the web.config that Tom Fulton wrote about. It worked so i dont get the ugly IIS 404 page, BUT it doesnt solve my problem because i need the umbraco 404 handler to fetch the request. Have other ideas any of you?

    Kind regards
    Anders

  • Rory 59 posts 84 karma points
    Jan 11, 2012 @ 18:29
    Rory
    4

    Hi, I have just have had same problem after migrating a site from 4.7.0 to 4.7.1.

    I found the solution on another post (http://our.umbraco.org/forum/using/ui-questions/8244-IIS7-404)

    I added

    <httpErrors existingResponse="PassThrough" />

    as the last entry in the <system.webServer> section of web.config and it worked great!

    hope this helps...

    Rory

     

     

  • Anders Burla 2560 posts 8256 karma points
    Jan 12, 2012 @ 10:09
    Anders Burla
    0

    Hi Rory

    It worked - thanks for the help everyone!

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft