Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Error Checking/Logging

  1. #1
    Tek7 is offline Senior Member
    Join Date
    May 2006
    Posts
    137

    Default Error Checking/Logging

    If someone types in an invalid query string (not sure why but these are popping up in the log) like ?CatID=310SecID=43 how can I get a nice error message to pop up?
    I just put this in the live web.config but it doesn't seem to do anything:
    <customErrors mode="RemoteOnly" defaultRedirect="PageNotFound.aspx">
    <!-- This will redirect 404 error on PageNotFound.aspx ,this will work only for file-types that IIS passes to ASP.NET -->
    <error statusCode="404" redirect="PageNotFound.aspx" />
    <error statusCode="403" redirect="PageNotFound.aspx" />
    </customErrors>
    TIA
    May

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    The customErrors setting is more for hard errors that result in that ugly yellow .NET error page. For 404 errors, take a look at our custom 404 page functionality.