Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Stedman 3 posts 23 karma points
    Sep 26, 2014 @ 15:09
    Mark Stedman
    0

    Razor Partial View Macros broken with 1.0.2 & Umbraco 7.1.4

     

    Howdy,

    We installed the 1.0.2 package and immediately started having YSOD on the front-end (error below). I saw the thread from 1.0 suggesting to remove these Google DLLs: 

    • Google.Apis.Auth.dll
    • Google.Apis.Auth.Mvc4.dll
    • Google.Apis.dll
    We pulled them out manually and the site is working again. Might want to stop including those in the package?
    Mark

    Server Error in '/' Application.

    'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'

    Source Error: 

    Line 4:  }
    Line 5:  
    Line 6:  @if (CurrentPage.Ancestors().Any())
    Line 7:  {
    Line 8:      foreach (var page in CurrentPage.Ancestors().OrderBy("Level")) {


    Source File: d:\home\site\wwwroot\Views\Partials\RecruitingUmbracoBreadcrumb.cshtml    Line: 

    Stack Trace: 

    [RuntimeBinderException: 'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any']
       CallSite.Target(Closure , CallSite , Object ) +277
       ASP._Page_Views_Partials_RecruitingUmbracoBreadcrumb_cshtml.Execute() in d:\home\site\wwwroot\Views\Partials\RecruitingUmbracoBreadcrumb.cshtml:6
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +104
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +236
       System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
       Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +93
       System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +277
       System.Web.Mvc.Html.RenderPartialExtensions.RenderPartial(HtmlHelper htmlHelper, String partialViewName) +57
       ASP._Page_Views_RecruitingUmbracoInnerBoxedcshtml_cshtml.Execute() in d:\home\site\wwwroot\Views\RecruitingUmbracoInnerBoxedcshtml.cshtml:159
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +199
       System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +104
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +90
       System.Web.WebPages.<>c__DisplayClass7.<RenderPageCore>b__6(TextWriter writer) +230
       System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) +10
       System.Web.WebPages.WebPageBase.Write(HelperResult result) +80
       System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +64
       System.Web.WebPages.WebPageBase.PopContext() +263
       System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +98
       System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +236
       System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +107
       Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +93
       System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +291
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
       System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +23
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
       System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +245
       System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22
       System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +176
       System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +308
       System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__19() +23
       System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
       System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +39
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
       System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +29
       System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
       System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
       System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9651188
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
  • Warren Buckley 2106 posts 4836 karma points MVP ∞ admin hq c-trib
    Sep 26, 2014 @ 15:13
    Warren Buckley
    0

    Thanks yes I keep meaning to release a new version of the Analytics package to resolve this without the DLLs included.
    I will try & find some time over the weekend to do this.

    Cheers,
    Warren

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Oct 14, 2014 @ 11:14
    Martin Griffiths
    0

    Hi Warren

    Have you managed to sort this issue?

    Kind regards

    Martin

Please Sign in or register to post replies

Write your reply to:

Draft