Orchard 1.4 site crashing randomly on subset of webfarm

Topics: Administration, Core, General, Installing Orchard, Troubleshooting
Nov 2, 2012 at 6:40 PM
Edited Nov 2, 2012 at 6:41 PM

Hello,

I have a website built on Orchard 1.4, running on a load-balanced webfarm of 3 servers, using an IIS shared configuration. The code on all three servers appears to be identical, as it should be.

I am currently running into a problem with my production site, where the site on one of the boxes will randomly stop working. It has happened several times today, and just happened again. It happens to all three boxes, but never at the same time. Recycling the application pool appears to fix the problem, but only temporarily, as the site will drop on that server again after a matter of time.

It does not appear to be an issue with the application pool timing out and recycling. We appear to have enough traffic hitting all three boxes to keep them all "awake", as I have not seen any messages in the Event Log that the application pool reached its idle timeout.

The error I am seeing is this - 

[RuntimeBinderInternalCompilerException: An unexpected exception occurred while binding a dynamic operation]   Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding) +182   Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(DynamicMetaObjectBinder action, RuntimeBinder binder, IEnumerable`1 args, IEnumerable`1 arginfos, DynamicMetaObject onBindingError) +764   Microsoft.CSharp.RuntimeBinder.CSharpBinaryOperationBinder.FallbackBinaryOperation(DynamicMetaObject target, DynamicMetaObject arg, DynamicMetaObject errorSuggestion) +84   System.Dynamic.DynamicMetaObject.BindBinaryOperation(BinaryOperationBinder binder, DynamicMetaObject arg) +27   System.Dynamic.BinaryOperationBinder.Bind(DynamicMetaObject target, DynamicMetaObject[] args) +77   System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel) +233   System.Runtime.CompilerServices.CallSiteBinder.BindCore(CallSite`1 site, Object[] args) +123   System.Dynamic.UpdateDelegates.UpdateAndExecute2(CallSite site, T0 arg0, T1 arg1) +668   ASP._Page_Modules_Szmyd_Orchard_Modules_Menu_Views_Parts_Menu_Styling_cshtml.Execute() in c:\Domains\naturemuseum.org\Modules\Szmyd.Orchard.Modules.Menu\Views\Parts\Menu.Styling.cshtml:8   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +279   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +113   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:131   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:118   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:177   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:88   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:37   Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27   ClaySharp.<>c__DisplayClass16.<InvokeMember>b__13() in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:13   ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   Orchard.Core.Shapes.CoreShapes.ContentZone(Object Display, Object Shape, TextWriter Output) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard.Web\Core\Shapes\CoreShapes.cs:236
[TargetInvocationException: Exception has been thrown by the target of an invocation.]   System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0   System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:64   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:55   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:177   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:88   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:37   Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27   ClaySharp.<>c__DisplayClass16.<InvokeMember>b__13() in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:13   ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ASP._Page_Modules_Orchard_Widgets_Views_Widget_cshtml.Execute() in c:\Domains\naturemuseum.org\Modules\Orchard.Widgets\Views\Widget.cshtml:1   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +279   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +113   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:131   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:118   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:177   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:88   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:37   Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27   ClaySharp.<>c__DisplayClass16.<InvokeMember>b__13() in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:13   ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   Orchard.Core.Shapes.CoreShapes.Zone(Object Display, Object Shape, TextWriter Output) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard.Web\Core\Shapes\CoreShapes.cs:229
[TargetInvocationException: Exception has been thrown by the target of an invocation.]   System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0   System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +251   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.ShapeAttributeBindingStrategy.PerformInvoke(DisplayContext displayContext, MethodInfo methodInfo, Object serviceInstance) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:64   Orchard.DisplayManagement.Descriptors.ShapeAttributeStrategy.<>c__DisplayClass4.<CreateDelegate>b__3(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAttributeStrategy\ShapeAttributeBindingStrategy.cs:55   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:177   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:88   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:37   Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27   ClaySharp.<>c__DisplayClass16.<InvokeMember>b__13() in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:13   ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ASP._Page_Themes_NatureMuseum_Views_Layout_Homepage_cshtml.<Execute>b__80(Object x) in c:\Domains\naturemuseum.org\Themes\NatureMuseum\Views\Layout-Homepage.cshtml:23   CallSite.Target(Closure , CallSite , Func`2 , Object ) +81   ASP._Page_Themes_NatureMuseum_Views_Layout_Homepage_cshtml.Execute() in c:\Domains\naturemuseum.org\Themes\NatureMuseum\Views\Layout-Homepage.cshtml:69   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +207   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +81   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +88   System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +220   System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +115   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +279   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +113   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render(ShapeDescriptor shapeDescriptor, DisplayContext displayContext, HarvestShapeInfo harvestShapeInfo, HarvestShapeHit harvestShapeHit) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:131   Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.<>c__DisplayClass28.<Discover>b__15(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeTemplateStrategy\ShapeTemplateBindingStrategy.cs:118   Orchard.DisplayManagement.Descriptors.<>c__DisplayClass5.<BoundAs>b__2(DisplayContext displayContext) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Descriptors\ShapeAlterationBuilder.cs:55   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process(ShapeBinding shapeBinding, IShape shape, DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:177   Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute(DisplayContext context) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DefaultDisplayManager.cs:88   Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute(Object shape) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:71   Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke(String name, INamedEnumerable`1 parameters) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelper.cs:37   Orchard.DisplayManagement.Implementation.DisplayHelperBehavior.InvokeMember(Func`1 proceed, Object target, String name, INamedEnumerable`1 args) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\DisplayManagement\Implementation\DisplayHelperFactory.cs:27   ClaySharp.<>c__DisplayClass16.<InvokeMember>b__13() in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   ClaySharp.ClayBehaviorCollection.Execute(Func`1 proceed, Func`3 linker) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:13   ClaySharp.ClayBehaviorCollection.InvokeMember(Func`1 proceed, Object self, String name, INamedEnumerable`1 args) in C:\Users\sebros\My Projects\Clay\src\ClaySharp\ClayBehaviorCollection.cs:29   Orchard.Mvc.ViewEngines.ThemeAwareness.<>c__DisplayClass7.<FindView>b__5(ViewContext viewContext, TextWriter writer, IViewDataContainer viewDataContainer) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:63   Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutView.Render(ViewContext viewContext, TextWriter writer) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\Mvc\ViewEngines\ThemeAwareness\LayoutAwareViewEngine.cs:90   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +303   System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +23   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +260   System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +177   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343   System.Web.Mvc.Controller.ExecuteCore() +116   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +37   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +21   System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +12   System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62   System.Web.Mvc.<>c__DisplayClasse.<EndProcessRequest>b__d() +50   System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f) +7   System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9   Orchard.Mvc.Routes.HttpAsyncHandler.EndProcessRequest(IAsyncResult result) in c:\Program Files\TeamCity\buildAgent\work\7b6fa683ee0922de\src\Orchard\Mvc\Routes\ShellRoute.cs:147   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8967885   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

Anyone have any ideas? Is there any more info I can give?

Coordinator
Nov 2, 2012 at 7:10 PM

If this always happen in the same file then I would suspect there is something wrong with this code.

Is it the case ?

Coordinator
Nov 2, 2012 at 7:11 PM

To be clear, in this file: Page_Modules_Szmyd_Orchard_Modules_Menu_Views_Parts_Menu_Styling_cshtml

Nov 2, 2012 at 7:22 PM

It is always happening in that file, yes....however, we haven't touched anything in that module for the last two weeks, and the site has been running just fine until today.

I republished the site, to see if that would help. Things were good for about the first half hour, then I noticed a couple errors pop up that indicated that dll's were missing in the AppData/Dependencies folder. I browsed to that folder, and watched as dll's would disappear and then reappear. I assume this has something to do with the dynamic compilation that allows modules to be added/removed on the fly. I wonder if that process was having a hard time getting the Szmyd.Orchard.Modules.Menu.dll to rebuild, resulting in the failure from that view? 

How often can I expect the dll rebuilds to occur? I had thought that they only happened on app startup...but watching the dll's disappear/reappear made me think that it happens on an interval basis?

Developer
Nov 2, 2012 at 8:06 PM

Although I'm not sure if it's related, but what happens if you disable dynamic compilation?

Nov 2, 2012 at 8:28 PM

For the moment, I have exhaled a relieved sigh, as things have been stable for at least an hour now. I am not sure why, but I am hopeful that republishing resolved my problems. (I am extremely suspicious of this, since the problem only seems to appear after the site has been running for a while, but after an hour of having "done something", I am slightly less suspicious.)

If/when, the problem reappears, the first thing I will do is try to disable dynamic compilation. Is the correct way to do this still to remove the buildProviders entry in the web.config, as described in this thread?

Thanks all for your time and help on this...

Nov 2, 2012 at 8:38 PM

Ah, nevermind...I believe this link describes the appropriate method for disabling dynamic compilation.