473,397 Members | 1,972 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,397 software developers and data experts.

customError only works for .aspx files?

Hi

I've designed my own 404 not found error page. And it works fine if I type
in this URL:

www.mydomain.com/doesntexist.aspx

However, if I type in:

www.mydomain.com/doesntexist.html

then I get the usual standard error message. How can I overcome this?

/john
Nov 17 '05 #1
1 1191
Hi

Unfortunately I down't haev access to the IIS mmc console, since my website
is located on a web hotel to which I connect via FTP. Is there no other way?
Maybe something I can do in web.config?

/john

"James J. Foster" <ja***@dotnetcoders.com> wrote in message
news:#w**************@TK2MSFTNGP10.phx.gbl...
What's happening in your case is that the 404 error handler is not being
handled by ASP.NET, because the file extension (.html) is handled by IIS. In order to cover your bases for both .NET and non-.NET extensions, you should declare a handler at the IIS level via the IIS mmc console (Right-click
website, select Properties, then the Custom Errors tab).

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com

"John Knoop" <jo****@home.se> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi

I've designed my own 404 not found error page. And it works fine if I type in this URL:

www.mydomain.com/doesntexist.aspx

However, if I type in:

www.mydomain.com/doesntexist.html

then I get the usual standard error message. How can I overcome this?

/john


Nov 17 '05 #2

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

Similar topics

0
by: Nadagouda | last post by:
Hi, Im trying http:\\localhost\WebService1\Service1.asmx?wsdl=. I am getting http 500 internal error instead of that i want to use mycustom page. I tried all the following options. 1. IIS...
2
by: Robert M | last post by:
Hello, I want to redirect to errorpage.aspx on a deplyed application and does not work... can anybody help.. thank u
3
by: Poppy | last post by:
Can someone give me a quick overview of how .net actually works. When a user requests for example "Mypage.aspx" what actually happens on the server ? Does the server look to the dll in the bin...
0
by: Cezar | last post by:
Hello, I downloaded and installed the Framework on a server but when I try to run a simple .NET Web application, a simple aspx page with one label, I get this error. The customError tag on...
0
by: Cezar | last post by:
Hi, This is a repost. I installed the framework on a W2K server and when I try to run a simple .net application, an aspx page with a label, I get this Runtime Error: ---- Runtime Error ...
4
by: Paul | last post by:
I have written a custom dll that I put inside the /bin directory of a production IIS server. Inside the config file of the web application i have added the following setting: <httpModules>...
2
by: Mark | last post by:
Hi, I'm fairly new to .NET and having problems getting an ASP.NET page working on my web host. The page works fine on my PC running against localhost. I have a MySQL database and a simple C#...
5
by: Mossman | last post by:
Hello, I am not sure what to look at next on this issue so any information and/or links to web sites would be greatly appreciated. I have developed an ASP.NET application using VB.NET. I...
0
by: Patrick.O.Ige | last post by:
I have 2 projects named Webproject and Kefi and in the webconfig i have the same configuration below for the 2:- <customErrors defaultRedirect="error.aspx" mode="On"> <error statusCode="500"...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.