404 Redirect firing when we receive an error - ASP.NET

devahka

New Member
I have the following values in my web.config:\[code\]<system.web> <customErrors mode="RemoteOnly" defaultRedirect="/CARE/Home/Custom404"> <error statusCode="404" redirect="/CARE/Home/custom404"/> </customErrors></system.web><system.webServer> <httpErrors errorMode="DetailedLocalOnly"> <remove statusCode="404"/> <error statusCode="404" path="/CARE/Home/Custom404" responseMode="ExecuteURL"/> </httpErrors></system.webServer>\[/code\]Works great for our 404 errors (Page Not Found), but for some reason, this is getting triggered when there is an error on the page.Any ideas as to why?
 
Back
Top