日期:2014-05-16  浏览次数:20391 次

_Layout.cshtml页面中报错:“System.StackOverflowException”类型的未经处理的异常出现在 未知模块”
<section class="container" style=" background-image:url(/Content/images/flash_bg-02.jpg); background-repeat:no-repeat;" >
    <header id="header" >
        <div class="row">
            <div class="span3 logo">
                <a href="/Home/Index"><img src="/Content/images/logo_01.png" width="300" height="100"/></a></div>
            <!-- .span9 -->
            <nav class="span9">
                <!-- #menu -->
                <div class="daohang" style="margin-top:20px;">
                 @{Html.RenderAction("Menu", "MenuFooter");}
                </div>
            </nav><!-- .span9-->      
        </div>
    </header>
    @RenderBody()
   <!-- #footer.container -->
  <footer id="footer" style="width:1232px; height:110px; background-color:#333333;">
      <div class="foot_img" style="float:left;margin-left:200px;" >
      <img src="/Content/images/foot-01.png" width="450px" height="100px"/>
      </div>
     @{Html.RenderAction("Footer", "MenuFooter");}
   </footer><!-- /#footer .container -->
</section><!-- /.row.services -->


错误点在:  @{Html.RenderAction("Menu", "MenuFooter");}
不明所以然,求指点
------解决方案--------------------
溢出,看看是否有死循环的代码
------解决方案--------------------
MenuFooter中又包括了MenuFooter,导致无限递归。