Error handling in mvc3 when view is made of many partial views RRS feed

  • Question

  • Hi,

    I have a MVC3 razor application. I have views which are made of multiple partial views. Controller will have to load the data to all the partial views with the help of different service calls.

    Now if any of the service call fails, the entire view should not failt. It should continue to show other partial views. and should show error message for the partial view which failed.

    Please note here that I do not want to add individual try catch blocks all over the code. so is there any way to achieve this using global error handling?

    Please suggest.


    • Moved by Paul Zhou Friday, November 18, 2011 7:25 AM off-topic (From:.NET Platform Architecture Development Discussions)
    Friday, November 18, 2011 4:36 AM


  • Hi,


    Welcome to the MSDN forum.


    According to your description, I'd like to move your thread to off-topic because it is a problem related to ASP.NET. You may post thread in ASP.NET Forum. There are more experts in that forum so that you may get more useful help there.


    Thank you for your posting and understanding.

    Have a nice day.

    Paul Zhou [MSFT]
    MSDN Community Support | Feedback to us
    Friday, November 18, 2011 7:24 AM