0
使用MVC4的Im。 我有一個[HttpPost]控制器方法返回一個ActionResult。 在這個函數中,當我捕獲一個異常時,我的計劃是調用返回PartialView(「ExceptionMessage」,exceptionObject)的[ChildActionOnly] ActionResult方法。 ExceptionMessage.cshtml基本上使用完整的Exception對象呈現標記。爲什麼從另一個ActionResult方法調用PartialView時不會調用?
由於某種原因,當調用此PartialView時,.cshtml中的斷點未被命中。
爲什麼這不起作用?