I believe an issue we're running into might be related to the lambda cache in Glass - I'm also concerned about the performance ramifications if we were to disable it. Has anyone done this and experienced any performance issues?
Edit - this was the original issue:
Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. Source: Anonymously Hosted DynamicMethods Assembly at lambda_method(Closure , ContentBlurbViewModel ) at Glass.Mapper.Sc.GlassHtml.MakeEditable[T](Expression`1 field, Expression`1 standardOutput, T model, Object parameters, Context context, Database database, TextWriter writer) in c:\TeamCity\buildAgent\work\8567e2ba106d3992\Source\Glass.Mapper.Sc\GlassHtml.cs:line 616
Lambda(s) that this fails on:
@Html.Glass().Editable(a => a.Heading) @Html.Glass().Editable(a => a.Subtitle) @Html.Glass().Editable(a => a.RichText1)
All of these lambdas are in the same cshtml view and share a view model. It looks like somehow or another the proxy object is returning nulls for the properties and Editable starts failing and it gets cached.