开发者

Exception handling with RenderAction Asp.Net MVC

开发者 https://www.devze.com 2022-12-20 22:12 出处:网络
We are using renderaction provided by MVC futures. We\'ve noticed that HttpExceptions in child action methods are not propagated to the parent action. Even though a fragment h开发者_运维知识库as faile

We are using renderaction provided by MVC futures. We've noticed that HttpExceptions in child action methods are not propagated to the parent action. Even though a fragment h开发者_运维知识库as failed, we still see the parent request resulting in a 200, and this throws our error handling for a toss. Any suggestions on how this could be handled?

Thanks,

Varun


http://forums.asp.net/t/1529174.aspx

Don't use RenderAction() from Futures. Use the one provided in-box instead. RenderAction() was officially moved into the framework as of MVC 2 Beta, and this problem should have been fixed.

0

精彩评论

暂无评论...
验证码 换一张
取 消