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

<customErrors

I have <customErrors .. in my web.config but the redirect does not kick in.
What am I doing wrong?
<customErrors defaultRedirect="Error.aspx" mode="On">
<error statusCode="404" redirect="Filenotfound.aspx"/>
</customErrors>
--
Arne Garvander
Certified Geek
Professional Data Dude
Jun 27 '08 #1
3 1780
On Jun 13, 6:48*pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.comwrote:
I have <customErrors .. in my web.config but the redirect does not kick in..
What am I doing wrong?
<customErrors defaultRedirect="Error.aspx" mode="On">
* * * * * * * * * * * * <error statusCode="404" redirect="Filenotfound.aspx"/>
* * * * * * * * </customErrors>
--
Arne Garvander
Certified Geek
Professional Data Dude
Arne

I suppose 404 is not working? If you call that page with the full URL
at http://servername/Filenotfound.aspx, does it work?
Jun 27 '08 #2
I can go there directly. The automatic redirect does not work.
--
Arne Garvander
Certified Geek
Professional Data Dude
"Alexey Smirnov" wrote:
On Jun 13, 6:48 pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.comwrote:
I have <customErrors .. in my web.config but the redirect does not kick in..
What am I doing wrong?
<customErrors defaultRedirect="Error.aspx" mode="On">
<error statusCode="404" redirect="Filenotfound.aspx"/>
</customErrors>
--
Arne Garvander
Certified Geek
Professional Data Dude

Arne

I suppose 404 is not working? If you call that page with the full URL
at http://servername/Filenotfound.aspx, does it work?
Jun 27 '08 #3
On Jun 13, 8:58*pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.comwrote:
I can go there directly. The automatic redirect does not work.
--
Arne Garvander
Certified Geek
Professional Data Dude

"Alexey Smirnov" wrote:
On Jun 13, 6:48 pm, Arne Garvander
<ArneGarvan...@discussions.microsoft.comwrote:
I have <customErrors .. in my web.config but the redirect does not kick in..
What am I doing wrong?
<customErrors defaultRedirect="Error.aspx" mode="On">
* * * * * * * * * * * * <error statusCode="404" redirect="Filenotfound.aspx"/>
* * * * * * * * </customErrors>
--
Arne Garvander
Certified Geek
Professional Data Dude
Arne
I suppose 404 is not working? If you call that page with the full URL
athttp://servername/Filenotfound.aspx, does it work?- Hide quoted text -

- Show quoted text -
So, what do you get when you go to http://server/pagedoesnotexist.aspx?
A blank page, an error... etc?

Try to get rid of defaultRedirect="Error.aspx" to see if it 404 would
work, or not (maybe you have an exception somethere, or a redirect in
case of an error). Check if path of redirect is correct, change it to
"~/Filenotfound.aspx", or "~/DIR/Filenotfound.aspx"... If it doesn't
help, look at IIS, Application Configuration, properties for aspx
files in the Application Extensions and ensure that "Verify that file
exists" is unmarked.
Jun 27 '08 #4

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

Similar topics

1
by: reza | last post by:
Hi, I am trying to use a customErrors configured in web.config: Have tried mode being 'On' or 'Remote' and have a page specified as defaultRedirect. However, everytime I tried to run it from debug,...
2
by: Maureen | last post by:
Hi: Our ASP.NET webapplication works on our development webserver, but fails on our production webserver - I cannot get any detailed error information: -It is an application -Mode in...
1
by: Menno Abbink | last post by:
Hey All, I'm developing a new website and I want the customer to be able to se my work in progress so I have set up a server behind my ADSL-router. The server is using W2003. I've created a...
1
by: Savas Ates | last post by:
I have a web application It works well in my local fodler.. 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, please...
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,...
1
by: Jayyde | last post by:
New to this so please bear with me... I set up the: <customErrors mode="On" defaultRedirect="~/Unavailable.aspx"> </customErrors> And what it'll do is redirect to the Unavailable.aspx...
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...
1
by: viveknaik17 | last post by:
When i upload aspx pages, it gives error of type.. Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.