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

Cannot display Custom Error Page

Kim
I've set the "defaultRedirect" attribute of the <customErrors> tag in
web.config file to the filename of the custom error page. However, ASP.NET
does not display this page whenever an unhandled exception is thrown.

Similarly, if I were to set the "ErrorPage" attribute of the @Page directive
to the filename of the custom error page, this page would not display.

I really do not know what's causing the problem and how to make it work.
Nov 19 '05 #1
2 1489
Have you set the attribute mode to "RemoteOnly"? Then it will only show you
the error page from a remote system. Set it to "On" to display the custom
error page. Remeber it is case-sensitive.

--
Sonu Kapoor - [MCP]
ASP.NET Moderator
WebSite: http://www.Kapoorsolutions.com
Blog: http://www.Kapoorsolutions.com/blog/
ASP.NET News: http://www.Kapoorsolutions.com/reblogger/
"Kim" wrote:
I've set the "defaultRedirect" attribute of the <customErrors> tag in
web.config file to the filename of the custom error page. However, ASP.NET
does not display this page whenever an unhandled exception is thrown.

Similarly, if I were to set the "ErrorPage" attribute of the @Page directive
to the filename of the custom error page, this page would not display.

I really do not know what's causing the problem and how to make it work.

Nov 19 '05 #2
Kim
thanks, got it.
"Sonu Kapoor" wrote:
Have you set the attribute mode to "RemoteOnly"? Then it will only show you
the error page from a remote system. Set it to "On" to display the custom
error page. Remeber it is case-sensitive.

--
Sonu Kapoor - [MCP]
ASP.NET Moderator
WebSite: http://www.Kapoorsolutions.com
Blog: http://www.Kapoorsolutions.com/blog/
ASP.NET News: http://www.Kapoorsolutions.com/reblogger/
"Kim" wrote:
I've set the "defaultRedirect" attribute of the <customErrors> tag in
web.config file to the filename of the custom error page. However, ASP.NET
does not display this page whenever an unhandled exception is thrown.

Similarly, if I were to set the "ErrorPage" attribute of the @Page directive
to the filename of the custom error page, this page would not display.

I really do not know what's causing the problem and how to make it work.

Nov 19 '05 #3

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

Similar topics

5
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
1
by: Wilton Yuan | last post by:
Hello, I am new of ASP.NET, I am trying to develop a web application with ASP.NET and Microsoft Visual Studio .net 2002. I create only one simple page with simple C# code behind, it works fine in...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
3
by: KJ | last post by:
Alright, I'm trying to display Ex.Message on a custom error page. Here is what I did. When an error occured I caught the error and saved it in a session variable and when the page redirected...
3
by: c676228 | last post by:
Hi everyone, I have a piece of code in sales.aspx.vb like this: Protected WithEvents Message As System.Web.UI.WebControls.Label Try ... ChartImage.ImageUrl = "ChartGenerator.aspx?" + DataStr +...
0
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for...
1
by: Allan Ebdrup | last post by:
I get the error: "Cannot create an object of type 'CustomWizard' from its string representation 'CustomWizard1' for the CustomWizard Property." when I view my custom server web control in...
5
by: Author | last post by:
I followed the example at http://support.microsoft.com/kb/308001/EN-US/ and created my own HttpHandler. Here is the code: using System.Web; namespace MyNameSpace { public class...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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,...

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.