473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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
Nov 17 '05 #1
1 3045
Hello,

Yes you can. What you have to do is to associate these files extensions to
the aspnet_isapi.dll 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>\Microsoft.Net\Framework\v1.0.3705\aspne t_isapi.dllNOTE: 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.dll), 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.dll) 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" <nr****@hotmail.com>
| Sender: "NRao" <nr****@hotmail.com>
| Subject: customErrors 404
| Date: Mon, 30 Jun 2003 17:05:05 -0700
| Lines: 11
| Message-ID: <04****************************@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/ZGy9lL0iAdkcRZWlzpn2JNj8aQ==
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: cpmsftngxa09.phx.gbl
| Xref: cpmsftngxa09.phx.gbl microsoft.public.dotnet.framework.aspnet:31255
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.framework.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
|
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Samuel | last post by:
A few (not all) of my clients are getting this error with a web thumbnail generator code I wrote ============================= Runtime Error Description: An application error occurred on the...
6
by: John Smith | last post by:
I am trying to implement custom error pages and I get this error message: **************************************************************************** ********...
10
by: Ron Weldy | last post by:
I am working on a website that someone else has set up. They have a web.config file with a customerrors element that points the error handling to a special aspx page. <customErrors...
21
by: nicholas | last post by:
Although in my web.config I have <customErrors mode="off" /> I still get no detailed errors. How comes ? THX This is what I get: Server Error in '/mywebfolder'Application.
1
by: Chumley Walrus | last post by:
I'm having trouble seeing my page when I publish it on my live server. I created a project in VS.net (with MMIT integrated), created a simple index.aspx mobilewebform page , I can see it in my...
0
by: dw | last post by:
Hi, all. I've deployed an ASP.NET 1.1 app from my localhost where it works fine to a server on the network, but when accessed from my machine through the Web, it first asks for me to log into the...
5
by: Savas Ates | last post by:
I have a web application It works well in my local folder.. When i upload it to my web server i got To enable the details of this specific error message to be viewable on remote machines,...
2
by: Max Metral | last post by:
I'm trying to set the default behavior of customErrors in the machine.config. The documentation seems to suggest this should work, but it doesn't seem to work for me. On my development machine, I...
9
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. Is it programatically possible in VB.NET to read the contents of web.config's <customErrorselement? I looked at using ConfigurationSettings.AppSettings, but that doesn't work. I need to...
0
by: baburk | last post by:
Hi, I want to use the <customErrors> for all <system.web></system.web> If error occure this should be called. I have to write it once not in every <system.web></system.web>. How can I?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.