“/”应用程序中的服务器错误。

未找到分部视图“PinDaoHead”或没有视图引擎支持搜索的位置。搜索了以下位置:
~/Views/picture/PinDaoHead.aspx
~/Views/picture/PinDaoHead.ascx
~/Views/Shared/PinDaoHead.aspx
~/Views/Shared/PinDaoHead.ascx
~/Views/picture/PinDaoHead.cshtml
~/Views/picture/PinDaoHead.vbhtml
~/Views/Shared/PinDaoHead.cshtml
~/Views/Shared/PinDaoHead.vbhtml

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.InvalidOperationException: 未找到分部视图“PinDaoHead”或没有视图引擎支持搜索的位置。搜索了以下位置:
~/Views/picture/PinDaoHead.aspx
~/Views/picture/PinDaoHead.ascx
~/Views/Shared/PinDaoHead.aspx
~/Views/Shared/PinDaoHead.ascx
~/Views/picture/PinDaoHead.cshtml
~/Views/picture/PinDaoHead.vbhtml
~/Views/Shared/PinDaoHead.cshtml
~/Views/Shared/PinDaoHead.vbhtml

源错误:


行 23: <body>
行 24: @*<body style="background: url(http://news.eapad.cn/Content/images/Home/bg_top.jpg) no-repeat top center fixed;">*@
行 25:     @{Html.RenderPartial("PinDaoHead");}
行 26:     <div style="width:1180px; margin:0 auto;">
行 27:     <style>

源文件: d:\webroot\hnjtnews.com\Views\Picture\Index.cshtml    行: 25

堆栈跟踪:


[InvalidOperationException: 未找到分部视图“PinDaoHead”或没有视图引擎支持搜索的位置。搜索了以下位置: 
~/Views/picture/PinDaoHead.aspx
~/Views/picture/PinDaoHead.ascx
~/Views/Shared/PinDaoHead.aspx
~/Views/Shared/PinDaoHead.ascx
~/Views/picture/PinDaoHead.cshtml
~/Views/picture/PinDaoHead.vbhtml
~/Views/Shared/PinDaoHead.cshtml
~/Views/Shared/PinDaoHead.vbhtml]
   System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) +382
   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +351
   System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +99
   ASP._Page_Views_Picture_Index_cshtml.Execute() in d:\webroot\hnjtnews.com\Views\Picture\Index.cshtml:25
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +125
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +143
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +181
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34280