Copied to clipboard

Flag this post as spam?

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


  • atze187 160 posts 215 karma points
    Jun 26, 2009 @ 15:23
    atze187
    0

    Error page when url is requested without file extension

    Hi,

    it's already me again. I've setup a custom error page to handle 404 errors, which works perfectly when calling a non-existing url as localhost/bla.aspx and raises the error page. When requesting localhost/bla (which also does not exists), i get the ugly IIS 7-generated default 404 page.

    I have not set up extensionless urls and to be honest, even if this fixes the problem, i dont wan't to use it.

    Cheers,
    André

  • Tom Madden 253 posts 455 karma points MVP 4x c-trib
    Jun 26, 2009 @ 16:05
    Tom Madden
    0

    Andre,

    In IIS 6, you have to set up Wildcard script mapping and I suspect you have to do the same in IIS 7 - I'd check if this is setup first, then check back here to see in anyone else has chimed in (I run IIS 6).

    Regards

    Tom

     

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Jun 26, 2009 @ 16:19
    Richard Soeteman
    1

    Checkout this link It's a great resource about how to set exstionless url's up in IIS 6 and 7(both classic and integrated pipeline)

    Hope it helps you,

    Richard

  • atze187 160 posts 215 karma points
    Jun 26, 2009 @ 16:47
    atze187
    0

    I'll give it a try tonight.

    Thanks,
    André

  • atze187 160 posts 215 karma points
    Jun 29, 2009 @ 09:20
    atze187
    0

    Didn't work for me, have to study this once again in a silent moment.

  • Roel 151 posts 305 karma points
    Jun 29, 2009 @ 09:48
    Roel
    0

    You might wanna give this a try: (did not check it in IIS7)

    In IIS6:

    • open "properties" for your website
    • go to "home directory" tab
    • click on "configuration"
    • look for the extension ".aspx"
    • click on "edit"
    • check the checkbox which says "verify that file exists"

    You can also check this: http://msdn.microsoft.com/en-us/library/h0hfz6fc</span>(VS.80).aspx

    Since 'RemoteOnly' specifies that custom errors are shown only to the remote clients, and that ASP.NET errors are shown to the local host.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies