customErrors 404

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NRao

    customErrors 404

    Hi Everybody,

    I have a problem tracking 404 error. When I configure
    customErros tag it is only capturing .ASPX pages. For all
    other file types it is returning IIS 404 page. Is there
    any way I can capture all 404 errors with <error> tag in
    web config. I mean .asp, .htm, etc..

    Thanks

    NRao
  • Bassel Tabbara [MSFT]

    #2
    RE: customErrors 404

    Hello,

    Yes you can. What you have to do is to associate these files extensions to
    the aspnet_isapi.dl l in IIS.
    To accomplish this follow these steps:


    1. Click Start, point to Programs, point to Administrative Tools, and
    then click Internet Services Manager.

    2. Expand the node that corresponds to the local host (computer name),
    and then expand the Default Web Site node.

    3. Right-click your Web application directory, and then click
    Properties.

    4. On the Directory tab, under Application Settings, click
    Configuration.

    5. Click the App Mappings tab.

    6. On the App Mappings tab, under Application Mappings, check whether the
    .aspx extension is mapped to the following
    dynamic-link library (DLL):

    C:\<Windows
    Directory>\Micr osoft.Net\Frame work\v1.0.3705\ aspnet_isapi.dl lNOTE: You
    must replace <Windows Directory> in
    this path with the correct directory for your system.

    In fact requests for ASP.NET file types or other file types such as .config
    files are handled by an ASP.NET ISAPI
    extension (aspnet_isapi.d ll), which runs in the IIS (inetinfo.exe) process
    address space. This uses a named pipe
    to communicate with the ASP.NET worker process. The ASP.NET ISAPI library
    (Aspnet_isapi.d ll) runs inside the
    IIS process address space (Inetinfo.exe). It dispatches requests to the
    HttpRuntime object within the ASP.NET
    worker process (Aspnet_wp.exe) .

    Please let me know if this answers you question.

    Thanks,
    Bassel Tabbara
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.


    --------------------
    | Content-Class: urn:content-classes:message
    | From: "NRao" <nrao77@hotmail .com>
    | Sender: "NRao" <nrao77@hotmail .com>
    | Subject: customErrors 404
    | Date: Mon, 30 Jun 2003 17:05:05 -0700
    | Lines: 11
    | Message-ID: <041801c33f64$6 cbfe260$a501280 a@phx.gbl>
    | MIME-Version: 1.0
    | Content-Type: text/plain;
    | charset="iso-8859-1"
    | Content-Transfer-Encoding: 7bit
    | X-Newsreader: Microsoft CDO for Windows 2000
    | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    | Thread-Index: AcM/ZGy9lL0iAdkcRZW lzpn2JNj8aQ==
    | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
    | Path: cpmsftngxa09.ph x.gbl
    | Xref: cpmsftngxa09.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:3125 5
    | NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
    | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
    |
    | Hi Everybody,
    |
    | I have a problem tracking 404 error. When I configure
    | customErros tag it is only capturing .ASPX pages. For all
    | other file types it is returning IIS 404 page. Is there
    | any way I can capture all 404 errors with <error> tag in
    | web config. I mean .asp, .htm, etc..
    |
    | Thanks
    |
    | NRao
    |


    Comment

    Working...