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

未找到分部视图“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\tgsgye.net\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) +416
   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +225
   System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +96
   ASP._Page_Views_Picture_Index_cshtml.Execute() in d:\webroot\tgsgye.net\Views\Picture\Index.cshtml:25
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +31
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +436
   System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +187
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +27
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +41
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +25
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +602
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +128


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