DarthFubuMVC/fubumvc-diagnostics — Issue #4: Click on example Html diagnostics type gets a YSOD
Author: KevM
Created: 2011-11-28 23:04:24+00:00
State: open

/_fubu/html/preview/FubuMVC.Diagnostics.Features.Html.ExampleViewModel-Person

```
[TargetException: Object does not match target type.]
System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target) +9347511
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +100
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) +63
System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index) +19
FubuCore.Reflection.PropertyValueGetter.GetValue(Object target) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Reflection\PropertyValueGetter.cs:20
FubuCore.Reflection.PropertyChain.findInnerMostTarget(Object target) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Reflection\PropertyChain.cs:158
FubuCore.Reflection.PropertyChain.GetValue(Object target) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\Reflection\PropertyChain.cs:51
FubuMVC.Core.UI.Configuration.ElementRequest.get_RawValue() in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Configuration\ElementRequest.cs:47
FubuMVC.Core.UI.Configuration.ElementRequest.StringValue() in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Configuration\ElementRequest.cs:100
FubuMVC.Core.UI.Configuration.DefaultHtmlConventions.<.ctor>b__2(ElementRequest req) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Configuration\DefaultHtmlConventions.cs:18
FubuMVC.Core.UI.Tags.TagFactory.buildTag(ElementRequest request) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Tags\TagFactory.cs:70
FubuMVC.Core.UI.Tags.<>c__DisplayClass5.b__2(ElementRequest request) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Tags\TagFactory.cs:53
FubuMVC.Core.UI.Tags.TagFactory.Build(ElementRequest request) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Tags\TagFactory.cs:79
FubuMVC.Core.UI.Tags.TagGenerator`1.DisplayFor(ElementRequest request) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\UI\Tags\TagGenerator.cs:165
FubuMVC.Diagnostics.Features.Html.Preview.Decorators.<>c__DisplayClass3.b__1(PropertyInfo prop) +429
System.Collections.Generic.GenericEnumerableExtensions.Each(IEnumerable`1 values, Action`1 eachAction) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\EnumerableExtensions.cs:78
FubuMVC.Diagnostics.Features.Html.Preview.Decorators.PropertyExamplesBuilder.Enrich(HtmlConventionsPreviewContext context, HtmlConventionsPreviewViewModel model) +235
FubuMVC.Diagnostics.Features.Html.Preview.<>c__DisplayClass1.b__0(IPreviewModelDecorator d) +19
System.Collections.Generic.GenericEnumerableExtensions.Each(IEnumerable`1 values, Action`1 eachAction) in c:\BuildAgent\work\4a2c4b02595de142\src\FubuCore\EnumerableExtensions.cs:78
FubuMVC.Diagnostics.Features.Html.Preview.get_OutputModel_handler.Execute(HtmlConventionsPreviewRequestModel request) +114
lambda_method(Closure , get_OutputModel_handler , HtmlConventionsPreviewRequestModel ) +38
FubuMVC.Core.Behaviors.OneInOneOutActionInvoker`3.performInvoke() in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Behaviors\OneInOneOutActionInvoker.cs:26
FubuMVC.Core.Behaviors.BasicBehavior.Invoke() in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Behaviors\BasicBehavior.cs:26
FubuMVC.StructureMap.NestedStructureMapContainerBehavior.Invoke() in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.StructureMap\NestedStructureMapContainerBehavior.cs:30
FubuMVC.Core.Runtime.BehaviorInvoker.Invoke(ServiceArguments arguments, IDictionary`2 routeValues) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Runtime\BehaviorInvoker.cs:31
FubuMVC.Core.Runtime.FubuHttpHandler.ProcessRequest(HttpContext context) in c:\BuildAgent\work\e5cfff0cc125d023\src\FubuMVC.Core\Runtime\FubuRouteHandler.cs:50
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
```