We have noticed an uptick in errors generated from our application that all display the following error with differing stack traces:
Description: System.Exception: Unable to cast object of type 'System.Runtime.
at System.Runtime.
at System.Reflection.Emit.
at lambda_method(Closure )
at System.Linq.EnumerableQuery`1.
at System.Linq.EnumerableQuery`1.
at System.Data.Services.WebUtil.
at System.Data.Services.
at System.Data.Services.
we have tried to reproduce but have not been able to, these errors appear to be increasing in volume. The only trend we've been able to really see is that these errors are occurring after customers load pages that access data. We get different flavors of this cast error, with the following objects (as an example) showing up in the error description as not castable to IPermission:
RTDynamicMethod,System.Runtime.CompilerServices.TrueReadOnlyCollection, System.Web.UI.WebControls.Repeater, System.Runtime.CompilerServices.Closure, and our own Buildium.Enterprise.Web.Shared.DataServices.Tasks.TasksDataService and Buildium.Enterprise.Web.Shared.DataServices.Residents.ResidentDataService
If anyone has seen this before or has any insight into this error I would appreciate any help as we're pretty stuck with this one right now.
Thanks!