asp.net - Custom route for specified errors in web.config -


i'm having custom error config in web.config :

<customerrors    mode="on"   defaultredirect="/common/errorpage.html?webconfig"> </customerrors > 

now i'm having need redirect different error page special pages remain "/common/errorpage.html?webconfig"> default. possible ?

if special pages can in specific asp.net mvc area, 1 way of doing can using different location based custom error paths. (from this)

<system.web>   <customerrors mode="on" defaultredirect="error" /> </system.web> . . . <location path="areaname">   <system.web>     <customerrors mode="on" defaultredirect="/areaname/error" />   </system.web>     </location> 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -