Skip to content

Instantly share code, notes, and snippets.

@grendello
Created February 2, 2011 10:26
Show Gist options
  • Save grendello/807513 to your computer and use it in GitHub Desktop.
Save grendello/807513 to your computer and use it in GitHub Desktop.
System.InvalidCastException]: Cannot cast from source type to destination type.
at (wrapper managed-to-native) System.Array.SetValueImpl (System.Array,object,int) <IL 0x00015, 0x00061>
at System.Array.SetValue (object,int) [0x00046] in /home/src/build/mono/mono/mcs/class/corlib/System/Array.cs:621
at System.Reflection.Binder/Default.AdjustArguments (System.Reflection.MethodBase,object[]&) [0x0006a] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:199
at System.Reflection.Binder/Default.BindToMethod (System.Reflection.BindingFlags,System.Reflection.MethodBase[],object[]&,System.Reflection.ParameterModifier[],System.Globalization.CultureInfo,string[],object&) [0x00083] in /home/src/build/mono/mono/mcs/class/corlib/System.Reflection/Binder.cs:175
at System.Activator.CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[]) [0x00043] in /home/src/build/mono/mono/mcs/class/corlib/System/Activator.cs:260
at System.Activator.CreateInstance (System.Type,object[],object[]) [0x00000] in /home/src/build/mono/mono/mcs/class/corlib/System/Activator.cs:234
at System.Activator.CreateInstance (System.Type,object[]) [0x00000] in /home/src/build/mono/mono/mcs/class/corlib/System/Activator.cs:229
at ClaySharp.DefaultClayActivator.CreateInstance (System.Type,System.Collections.Generic.IEnumerable`1<ClaySharp.IClayBehavior>,System.Collections.Generic.IEnumerable`1<object>) <IL 0x00037, 0x000db>
at ClaySharp.ClayActivator.CreateInstance (System.Collections.Generic.IEnumerable`1<ClaySharp.IClayBehavior>,object[]) <IL 0x00016, 0x00045>
at Orchard.UI.Zones.ZoneHoldingBehavior.GetMember (System.Func`1<object>,object,string) [0x000e5] in /home/grendel/Projects/work/orchard/src/Orchard/UI/Zones/ZoneHoldingBehavior.cs:41
at ClaySharp.ClayBehaviorCollection/<>c__DisplayClass2/<>c__DisplayClass4.<GetMember>b__1 () <IL 0x00022, 0x00035>
at ClaySharp.ClayBehaviorCollection.Execute (System.Func`1<object>,System.Func`3<System.Func`1<object>, ClaySharp.IClayBehavior, System.Func`1<object>>) <IL 0x00008, 0x00031>
at ClaySharp.ClayBehaviorCollection.GetMember (System.Func`1<object>,object,string) <IL 0x00017, 0x00087>
at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object) <IL 0x000dd, 0x003e6>
at System.Dynamic.UpdateDelegates.UpdateAndExecute1<object, object> (System.Runtime.CompilerServices.CallSite,object) <0x003ec>
at ASP._Page_Themes_SafeMode_Views_Layout_cshtml.Execute () [0x0016e] in /home/grendel/Projects/work/orchard/src/Orchard.Web/Themes/SafeMode/Views/Layout.cshtml:13
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy () <IL 0x00055, 0x00117>
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy () <IL 0x00012, 0x00047>
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy (System.Web.WebPages.WebPageContext,System.IO.TextWriter,System.Web.WebPages.WebPageRenderingBase) <IL 0x0003a, 0x0009c>
at System.Web.Mvc.RazorView.RenderView (System.Web.Mvc.ViewContext,System.IO.TextWriter,object) <IL 0x000ab, 0x00167>
at System.Web.Mvc.BuildManagerCompiledView.Render (System.Web.Mvc.ViewContext,System.IO.TextWriter) <IL 0x0006b, 0x000b0>
at System.Web.Mvc.HtmlHelper.RenderPartialInternal (string,System.Web.Mvc.ViewDataDictionary,object,System.IO.TextWriter,System.Web.Mvc.ViewEngineCollection) <IL 0x00086, 0x001f9>
at System.Web.Mvc.Html.PartialExtensions.Partial (System.Web.Mvc.HtmlHelper,string,object,System.Web.Mvc.ViewDataDictionary) <IL 0x00015, 0x0008b>
at System.Web.Mvc.Html.PartialExtensions.Partial (System.Web.Mvc.HtmlHelper,string,object) <IL 0x00009, 0x00037>
at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy.Render (Orchard.DisplayManagement.Descriptors.ShapeDescriptor,Orchard.DisplayManagement.Implementation.DisplayContext,Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.HarvestShapeInfo,Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.HarvestShapeHit) [0x00000] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Descriptors/ShapeTemplateStrategy/ShapeTemplateBindingStrategy.cs:120
at Orchard.DisplayManagement.Descriptors.ShapeTemplateStrategy.ShapeTemplateBindingStrategy/<Discover>c__AnonStorey8A/<Discover>c__AnonStorey8B.<>m__FA (Orchard.DisplayManagement.Implementation.DisplayContext) [0x00000] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Descriptors/ShapeTemplateStrategy/ShapeTemplateBindingStrategy.cs:109
at Orchard.DisplayManagement.Descriptors.ShapeAlterationBuilder/<BoundAs>c__AnonStorey1C/<BoundAs>c__AnonStorey1D.<>m__17 (Orchard.DisplayManagement.Implementation.DisplayContext) [0x00027] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Descriptors/ShapeAlterationBuilder.cs:55
at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Process (Orchard.DisplayManagement.Descriptors.ShapeBinding,Orchard.DisplayManagement.IShape,Orchard.DisplayManagement.Implementation.DisplayContext) [0x0002e] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs:163
at Orchard.DisplayManagement.Implementation.DefaultDisplayManager.Execute (Orchard.DisplayManagement.Implementation.DisplayContext) [0x00168] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Implementation/DefaultDisplayManager.cs:76
at Orchard.DisplayManagement.Implementation.DisplayHelper.ShapeExecute (object) [0x0004a] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Implementation/DisplayHelper.cs:84
at Orchard.DisplayManagement.Implementation.DisplayHelper.Invoke (string,ClaySharp.INamedEnumerable`1<object>) [0x000f9] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Implementation/DisplayHelper.cs:49
at Orchard.DisplayManagement.Implementation.DisplayHelperFactory/DisplayHelperBehavior.InvokeMember (System.Func`1<object>,object,string,ClaySharp.INamedEnumerable`1<object>) [0x0002a] in /home/grendel/Projects/work/orchard/src/Orchard/DisplayManagement/Implementation/DisplayHelperFactory.cs:28
at ClaySharp.ClayBehaviorCollection/<>c__DisplayClasse/<>c__DisplayClass10.<InvokeMember>b__d () <IL 0x0002d, 0x0003d>
at ClaySharp.ClayBehaviorCollection.Execute (System.Func`1<object>,System.Func`3<System.Func`1<object>, ClaySharp.IClayBehavior, System.Func`1<object>>) <IL 0x00008, 0x00031>
at ClaySharp.ClayBehaviorCollection.InvokeMember (System.Func`1<object>,object,string,ClaySharp.INamedEnumerable`1<object>) <IL 0x0001f, 0x00097>
at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <IL 0x00098, 0x00273>
at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, object> (System.Runtime.CompilerServices.CallSite,object,object) <0x0042b>
at Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutAwareViewEngine/<FindView>c__AnonStorey45.<>m__64 (System.Web.Mvc.ViewContext,System.IO.TextWriter,System.Web.Mvc.IViewDataContainer) [0x001e2] in /home/grendel/Projects/work/orchard/src/Orchard/Mvc/ViewEngines/ThemeAwareness/LayoutAwareViewEngine.cs:61
at Orchard.Mvc.ViewEngines.ThemeAwareness.LayoutAwareViewEngine/LayoutView.Render (System.Web.Mvc.ViewContext,System.IO.TextWriter) [0x0000c] in /home/grendel/Projects/work/orchard/src/Orchard/Mvc/ViewEngines/ThemeAwareness/LayoutAwareViewEngine.cs:88
at System.Web.Mvc.ViewResultBase.ExecuteResult (System.Web.Mvc.ControllerContext) <IL 0x00082, 0x0015c>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult (System.Web.Mvc.ControllerContext,System.Web.Mvc.ActionResult) <IL 0x00002, 0x0001d>
at System.Web.Mvc.ControllerActionInvoker/<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19 () <IL 0x00012, 0x00022>
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter (System.Web.Mvc.IResultFilter,System.Web.Mvc.ResultExecutingContext,System.Func`1<System.Web.Mvc.ResultExecutedContext>) <IL 0x00023, 0x000c7>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment