By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,594 Members | 3,459 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,594 IT Pros & Developers. It's quick & easy.

custom error page problem

P: n/a
dee
Hi

In web.config I have to the following:

<configuration>
<system.web>
<customErrors defaultRedirect="error.htm" mode="On" />
</system.web>
</configuration>

I do a divide by zero to generate an error in my page. Instead of being
redirected to error.htm i get the following error message form dotnet:

Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed.
Details: ...

Why don't I ger redirected to my error.htm page?

Thanks for your time.
Dee
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try catching a DivideByZeroException

This page will explain a lot:
http://visualbasic.about.com/od/usin...dyknaninfa.htm

This page will explain structured Exception handling
and how to catch a DivideByZeroException:
http://support.microsoft.com/default...315965&SD=MSDN

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"dee" <dee@home> wrote in message news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi

In web.config I have to the following:

<configuration>
<system.web>
<customErrors defaultRedirect="error.htm" mode="On" />
</system.web>
</configuration>

I do a divide by zero to generate an error in my page. Instead of being redirected to
error.htm i get the following error message form dotnet:

Runtime Error
Description: An application error occurred on the server. The current custom error
settings for this application prevent the details of the application error from being
viewed.
Details: ...

Why don't I ger redirected to my error.htm page?

Thanks for your time.
Dee

Nov 19 '05 #2

P: n/a
dee
Juan

I do a div by zero on purpose to generate any error to test my code. This is
not about div by zero.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:O%***************@TK2MSFTNGP15.phx.gbl...
Try catching a DivideByZeroException

This page will explain a lot:
http://visualbasic.about.com/od/usin...dyknaninfa.htm

This page will explain structured Exception handling
and how to catch a DivideByZeroException:
http://support.microsoft.com/default...315965&SD=MSDN

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"dee" <dee@home> wrote in message
news:Or**************@TK2MSFTNGP15.phx.gbl...
Hi

In web.config I have to the following:

<configuration>
<system.web>
<customErrors defaultRedirect="error.htm" mode="On" />
</system.web>
</configuration>

I do a divide by zero to generate an error in my page. Instead of being
redirected to error.htm i get the following error message form dotnet:

Runtime Error
Description: An application error occurred on the server. The current
custom error settings for this application prevent the details of the
application error from being viewed.
Details: ...

Why don't I ger redirected to my error.htm page?

Thanks for your time.
Dee


Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.