CustomErrors! What is going on?

S

shapper

Hello,

I have the following on my ASP.NET web.config file:

<customErrors mode ="On" defaultRedirect ="/Error/Generic">
<error statusCode ="400" redirect ="/Error/Http/400"/>
<error statusCode ="401" redirect ="/Error/Http/401"/>
<error statusCode ="403" redirect ="/Error/Http/403"/>
<error statusCode ="404" redirect ="/Error/Http/404"/>
<error statusCode ="408" redirect ="/Error/Http/408"/>
<error statusCode ="500" redirect ="/Error/Http/500"/>
<error statusCode ="502" redirect ="/Error/Http/502"/>
<error statusCode ="503" redirect ="/Error/Http/503"/>
<error statusCode ="504" redirect ="/Error/Http/504"/>
</customErrors>

Something very strange happens. Every time I refresh a page the error
is fired but the HttpCode is always null.

I have no idea why this is firing because no error happens.

Could someone help me out?

Thanks,

Miguel
 

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

Similar Threads

customErrors 1
<customErrors 3
Error Handling Question(1) 3
Error Handling 2
Frustrations with Error Logging 1
CustomErrors for a 404 code 2
CustomErrors not working on live host 1
CustomErrors -WebConfing 2

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top