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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -