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

Page.ErrorPage property

Hello,

I'm using Web Matrix and tried to add ErrorPage like this:
<%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %>

I thought this would trap unhandled exceptions and redirects to hello.aspx;
it does not. Help.

Thanks.
Nov 17 '05 #1
3 2013
Check your web.config customErrors
Setting
Here's a page I found helpful.
http://msdn.microsoft.com/library/de...orssection.asp
"Michael" <a@b.c> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hello,

I'm using Web Matrix and tried to add ErrorPage like this:
<%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %>

I thought this would trap unhandled exceptions and redirects to hello.aspx; it does not. Help.

Thanks.

Nov 17 '05 #2
Francis,

I'm using Web Matrix, and I can't find a web.config file; would you know if
Web Matrix store the web.config file in some specific folder?

Thanks.
"Francis Shanahan" <fs@NoSpamTodayThanks.francisshanahan.com> wrote in
message news:ux**************@tk2msftngp13.phx.gbl...
Check your web.config customErrors
Setting
Here's a page I found helpful.
http://msdn.microsoft.com/library/de...orssection.asp

"Michael" <a@b.c> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hello,

I'm using Web Matrix and tried to add ErrorPage like this:
<%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %>

I thought this would trap unhandled exceptions and redirects to

hello.aspx;
it does not. Help.

Thanks.


Nov 17 '05 #3
Michael, I haven't used the web matrix tool but from what I've heard it just
helps you construct your aspx pages. The web.config is needed for all
ASP.NET applications and it should be in the root folder of your
application, under c:\inetpub\wwwroot\<application folder>\web.config

hope that helps,
-fs

"Michael" <a@b.c> wrote in message
news:um**************@TK2MSFTNGP10.phx.gbl...
Francis,

I'm using Web Matrix, and I can't find a web.config file; would you know if Web Matrix store the web.config file in some specific folder?

Thanks.
"Francis Shanahan" <fs@NoSpamTodayThanks.francisshanahan.com> wrote in
message news:ux**************@tk2msftngp13.phx.gbl...
Check your web.config customErrors
Setting
Here's a page I found helpful.

http://msdn.microsoft.com/library/de...orssection.asp


"Michael" <a@b.c> wrote in message
news:um**************@tk2msftngp13.phx.gbl...
Hello,

I'm using Web Matrix and tried to add ErrorPage like this:
<%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %>

I thought this would trap unhandled exceptions and redirects to

hello.aspx;
it does not. Help.

Thanks.



Nov 17 '05 #4

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

Similar topics

1
by: Shelly | last post by:
I would like to have a popup page. In case of errors, I would like to have a separate page (of small size) pop up with the error message. How can I make this happen? It would make life much...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
6
by: José Joye | last post by:
Hello, I'm currently reading the MS Developing Web applications with c# (and VB.net). In the chapter related to Error management, there is a sample about "Page-Level Error Pages" eg: In my...
1
by: sam | last post by:
Hi, I have seen many posts about this problem and no resolution. I have set the maxRequestLength to 200K as I don't want anyone uploading files to the server greater than this size. I have...
2
by: Jeff Robichaud | last post by:
Hi, It is said the ErrorPage property of System.Web.UI.Page defines the target page where the browser will be redirected when un unhandled exception occurs. Doesn't seem to work...well it works...
1
by: Keith Patrick | last post by:
I've got an app where the my page handles an exception. However, because the controls that should change are actually in the MasterPage, I need to bubble the event "up" to the .Master member. ...
11
by: McKirahan | last post by:
I am looking for feedback on an approach to using PHP. Below is a stripped down version of a Home page: "index.php". The content of the site is displayed in the middle of the page and is...
1
by: jobs | last post by:
Hello. I've got a customerrors section in my web.config that redirects all errors to an ErrorPage.aspx <customErrors defaultRedirect="~/ErrorPage.aspx"> <error statusCode="403"...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.