defaultRedirect in web.config doesn't work

J

Jonas

Hi,

I've got an ASP.NET application that I would like to use the defaultRedirect
attribute of customErrors element to redirect to a custom aspx-page in case
of errors. But the page just doesn't get called, instead the default ASP.NET
error page is shown. I no Application_Error sub in global.asax.vb so the
web.config should rule this.

Any tips?

Jonas
 
G

Guest

Use

<customErrors mode="RemoteOnly" defaultRedirect="ErrorPage.aspx"/> in your
web.config file.
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top