473,325 Members | 2,608 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,325 software developers and data experts.

Custom http errors

I am using a custom http error redirect in my web.config (404)
<customErrors mode="On" defaultRedirect="default.aspx">
<error statusCode="404" redirect="default.aspx"/>
</customErrors>

It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx
the redirect works fine.

But if someone enters http://www.mydomin.com/myfolder/
it doesn't work.
Neither the folder or the aspx page exist.
and both produce a 404 error.
Nov 17 '05 #1
4 1387
Ron,

That's because the request is never making it to the ASP.NET engine since a
handled file extension is not present in the requested URL. The simplest
workaround is to configure IIS to use your page for 404 errors.

HTH,
Nicole
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I am using a custom http error redirect in my web.config (404)
<customErrors mode="On" defaultRedirect="default.aspx">
<error statusCode="404" redirect="default.aspx"/>
</customErrors>

It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx
the redirect works fine.

But if someone enters http://www.mydomin.com/myfolder/
it doesn't work.
Neither the folder or the aspx page exist.
and both produce a 404 error.

Nov 17 '05 #2
Ron,

That's because the request is never making it to the ASP.NET engine since a
handled file extension is not present in the requested URL. The simplest
workaround is to configure IIS to use your page for 404 errors.

HTH,
Nicole
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I am using a custom http error redirect in my web.config (404)
<customErrors mode="On" defaultRedirect="default.aspx">
<error statusCode="404" redirect="default.aspx"/>
</customErrors>

It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx
the redirect works fine.

But if someone enters http://www.mydomin.com/myfolder/
it doesn't work.
Neither the folder or the aspx page exist.
and both produce a 404 error.

Nov 17 '05 #3
makes sense, thanks

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
Ron,

That's because the request is never making it to the ASP.NET engine since a handled file extension is not present in the requested URL. The simplest
workaround is to configure IIS to use your page for 404 errors.

HTH,
Nicole
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I am using a custom http error redirect in my web.config (404)
<customErrors mode="On" defaultRedirect="default.aspx">
<error statusCode="404" redirect="default.aspx"/>
</customErrors>

It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx the redirect works fine.

But if someone enters http://www.mydomin.com/myfolder/
it doesn't work.
Neither the folder or the aspx page exist.
and both produce a 404 error.


Nov 17 '05 #4
makes sense, thanks

"Nicole Calinoiu" <ni*****@somewhere.net> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
Ron,

That's because the request is never making it to the ASP.NET engine since a handled file extension is not present in the requested URL. The simplest
workaround is to configure IIS to use your page for 404 errors.

HTH,
Nicole
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl...
I am using a custom http error redirect in my web.config (404)
<customErrors mode="On" defaultRedirect="default.aspx">
<error statusCode="404" redirect="default.aspx"/>
</customErrors>

It works when someone enters http://www.mydomain.com/myfolder/mypage.aspx the redirect works fine.

But if someone enters http://www.mydomin.com/myfolder/
it doesn't work.
Neither the folder or the aspx page exist.
and both produce a 404 error.


Nov 17 '05 #5

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

Similar topics

3
by: Steve | last post by:
All -- This occasionally happens, and there's no set pattern on why this is... perhaps it happens a few times every few months or so. I have a custom ATL COM object that handles data from...
3
by: Mark Metzner | last post by:
We currently have custom error logging setup on all of our websites. We have IIS setup to redirect to our custom 500-100.asp page which logs the error to a database and then redirects to a...
6
by: Nick Horrocks | last post by:
I have set up a custom error page for 404 errors. However the HTTP status code returned is 302 followed by 200, this causes search engines not to remove old pages from their index. How can I...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
2
sanjib65
by: sanjib65 | last post by:
I try to create a custom control that will say, Hello + ComputerUserName. I have added in my App_Code folder a WelcomeLabel.cs file: // WelcomeLabel.cs using System; using...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.