CustomError page not working?

D

dm1608

I have an ASP.NET 2.0 application that is giving me exception errors when
particular queries are run. Running webpage locally, I can see the stack
trace of the error. Running remotely, I get the frierndly page telling me
that there is an error and I have to change the "mode" in order to view
errors remotely and/or setup a CustomerError page.

I have a custom error page setup but ASP doesn't seem to be invoking it...

within the <system.web> I have:

<customErrors mode="RemoteOnly" defaultRedirect="~/Error.htm">
</customErrors>

This doesn't appear to be working. I've tried changing the path to
/Error.htm and also /AppDir/Error.htm without success.

Anyone have any ideas?
 
D

dm1608

Sorry -- this has been resolved. The code was commented out... it just
wasn't obvious since the comment tags were skewed...
 

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

Forum statistics

Threads
474,262
Messages
2,571,045
Members
48,769
Latest member
Clifft

Latest Threads

Top