custom error page problem

D

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
 
D

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top