Previous Next

Thread: How to set Custom Error Execute Pages w/port numbers

Last post 08-21-2008 4:05 PM by ma_khan. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 08-21-2008, 12:54 AM

    • nyhtal
    • Not Ranked
    • Joined on 08-21-2008, 4:48 AM
    • Posts 2

    How to set Custom Error Execute Pages w/port numbers

    I have a problem setting a custom 404 error page as an Execute page with a website using a port number i.e. http://mysite:81

    the path in IIS is set is /FileNotFound.aspx - this work when i don't use a port number for my site but I cannot get it to work when i use a port number - any help would be appreciated.

    i get this error instead of my custom error page being hit.

    HTTP Error 404.0 - Not Found

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

     

    Tags:
  • 08-21-2008, 2:12 AM In reply to

    Re: How to set Custom Error Execute Pages w/port numbers

    What is the sub-status code related to this in IIS logs... ?? 

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-21-2008, 11:29 AM In reply to

    • nyhtal
    • Not Ranked
    • Joined on 08-21-2008, 4:48 AM
    • Posts 2

    Re: How to set Custom Error Execute Pages w/port numbers

    The sub status code is "0" 404.0

     here is my iis log record: 

    2008-08-21 15:24:13 ab80::g5a:22dd:6fab:g769%7 GET /mysite/home - 81 - ab80::g5a:22dd:6fab:g769%7 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+SV1;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+.NET+CLR+3.0.04506;+.NET+CLR+1.1.4322;+.NET+CLR+3.5.21022;+InfoPath.2) 404 0 2 5

  • 08-21-2008, 4:05 PM In reply to

    Re: How to set Custom Error Execute Pages w/port numbers

    Are you using IIS 6 or IIS 7? by your Error message and log I feel it is IIS 7 ... but you have posted in an IIS 6 forum ... I am confused... :)

    Anyways I will tell you about both of them ....

    By default you must remember that at local machine you will get detailed errors... so if you want to check custom errors... best place to check is a remote machine...

    However in IIS 7 after you place a custom error message ... click on Edit feature Settings under the Actions pane for Error Pages feature...Under Error responses here select Custom error pages... After doing so you will get to see custom error messages on local machine as well as on remote machine...But I recommend using the 3rd setting once you are done testing your custom error page... suits us IIS Admins well ;)

    This setting is not there on IIS 6, I believe, as far as my knowledge goes... There on local machine it displays the default error messages... so you would have to check custom error on remote machines...

    Just reproduced your scenario on both my IIS 7 and IIS 6 machines and they work perfectly so you should be all set ...

    Hope this helps....
     


     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (4 items)
Page view counter