ASP.NET MVC stack overflow exception when calling a partial view from master page

后端 未结 3 1212
悲&欢浪女
悲&欢浪女 2021-01-19 15:24

I\'m getting a stack overflow error when I try to call a partial view from the master.

The Partial View:

<%@ Control Language=\"C         


        
3条回答
  •  情书的邮戳
    2021-01-19 15:35

    I have seen this error before. In my case it happened when i returned a call to View() rather than PartialView() for Html.RenderAction or Html.Action in my action methods.

    Hope this helps someone.

提交回复
热议问题