More in this section

Forums / Developing with Sitefinity / Feather Partial View Not Found

Feather Partial View Not Found

1 posts, 0 answered
  1. Jane
    Jane avatar
    0 posts
    Registered:
    05 Feb 2016
    23 Mar
    Link to this post

    Upgrading from version 8.2 to 10

    NuGet package Telerik.Sitefinity.Feather.1.9.810.0

    I have a partial view on my custom layout. Homepage will not load because the partial view cannot be found. How do I get my custom mvc partial view to load? This was working before I upgraded.  And yes, I have [assembly: Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Controllers.Attributes.ControllerContainer] in my assemblyinfo.cs

    My folder structure is:

    ResourcePackages > Custom > MVC > Views > Shared > _PushMenu.cshtml

    The file type is content

    Feather generated code:

    obj > FeatherCodeGen > ResourcePackages > Custom > MVC > Views > Shared >  _PushMenu.cshtml.cs

    Error Log:

    Type : System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : The partial view '_PushMenu.cshtml' was not found or no view engine supports the searched locations. The following locations were searched:
    ~/Views/Generic/_PushMenu.cshtml
    ~/Views/Shared/_PushMenu.cshtml
    ~/Views/Generic/_PushMenu.aspx
    ~/Views/Generic/_PushMenu.ascx
    ~/Views/Shared/_PushMenu.aspx
    ~/Views/Shared/_PushMenu.ascx
    ~/Views/Generic/_PushMenu.vbhtml
    ~/Views/Shared/_PushMenu.vbhtml
    Source : System.Web.Mvc
    Help link : 
    Data : System.Collections.ListDictionaryInternal
    TargetSite : System.Web.Mvc.IView FindPartialView(System.Web.Mvc.ViewContext, System.String, System.Web.Mvc.ViewEngineCollection)
    HResult : -2146233079
    Stack Trace :    at System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection)
       at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection)
       at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
       at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model)
       at SitefinityWebApp.ResourcePackages.Custom.MVC.Views.Layouts.MyLayout.Execute() in c:\tfs\EXAMPLE\ExampleSitefinity\SitefinityWebApp\obj\FeatherCodeGen\ResourcePackages\Custom\MVC\Views\..MVC\Views\Layouts\MyLayout.cshtml:line 51
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
       at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
       at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
       at RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutRenderer.RenderViewToString(ControllerContext context, String viewPath, Boolean placeholdersOnly)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutRenderer.GetLayoutTemplate(String templateName, Boolean placeholdersOnly)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.LayoutVirtualFileResolver.Open(PathDefinition definition, String virtualPath)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.MvcMasterPage.LayoutOutput(String path)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.Layouts.MvcMasterPage.ApplyToPage(Page page)
       at Telerik.Sitefinity.Frontend.Mvc.Infrastructure.PageInitializer.PreInitHandler(Object sender, EventArgs e)
       at System.Web.UI.Page.OnPreInit(EventArgs e)
       at System.Web.UI.Page.PerformPreInit()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

1 posts, 0 answered