asp.net mvc handleerror


how i [handleerror] filter asp.net mvc preview 5?

i set customerrors web.config file



<customerrors mode="on" defaultredirect="error.aspx">
<error statuscode="403" redirect="noaccess.htm"/>
<error statuscode="404" redirect="filenotfound.htm"/>
</customerrors>


and put [handleerror] above controller category this:



[handleerror]
public category dswebsitecontroller: controller
{
[snip]
open actionresult crashtest()
{
pitch new exception("oh noes!");
}
}


then i let controllers get category crashtest() them.
visual studio halts during blunder after dire f5 continue, i rerouted error.aspx?aspxerrorpath=/sxi.mvc/crashtest (where sxi name used controller.
off impetus route can't found i "server blunder '/' application." 404.



this site ported preview 3 5.
everything runs (wasn't many work port) solely blunder handling.
when i emanate finish new digest blunder doing seems work.



ideas?



--note--

since doubt over 3k views now, i guess profitable put i'm now (asp.net mvc 1.0) using.
in there resplendent charge called "rescueattribute"
you should substantially check out too ;)



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members