Server Error in '/' Application.

Attempt to set handle to type MDrivenServerId when static type is RuntimeKey

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Eco.Exceptions.EcoException: Attempt to set handle to type MDrivenServerId when static type is RuntimeKey

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[EcoException: Attempt to set handle to type MDrivenServerId when static type is RuntimeKey]
   Eco.Handles.ElementHandle.set_InternalElement(IElement value) in C:\CapableObjectsWush\source\Eco\Eco.Handles\Handles\VSElementHandle.cs:1115
   Eco.Handles.ReferenceHandle.DoSetElement(IElement value) in C:\CapableObjectsWush\source\Eco\Eco.Handles\Handles\VSReferenceHandle.cs:37
   Eco.Handles.ReferenceHandle.SetElement(Object value) in C:\CapableObjectsWush\source\Eco\Eco.Handles\Handles\VSReferenceHandle.cs:64
   Eco.ViewModel.Runtime.<>c__DisplayClass157_0.<SetElement>b__0() in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelRuntime.cs:1738
   Eco.Services.Impl.AsyncSupportServiceImpl.WrapTaskInStandardExceptionHandling(Action task) in C:\CapableObjectsWush\source\Eco\Eco.Handles\ServicesImpl\AsyncSupportServiceImpl.cs:338
   Eco.Services.Impl.AsyncSupportServiceImpl.PerformTaskNowIfInAsyncThread(Action task) in C:\CapableObjectsWush\source\Eco\Eco.Handles\ServicesImpl\AsyncSupportServiceImpl.cs:318
   Eco.ViewModel.Runtime.ViewModel.SetElement(IEcoObject obj) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelRuntime.cs:1687
   Eco.ViewModel.Runtime.ViewModel.set_RootObject(IEcoObject value) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelRuntime.cs:2051
   Eco.ViewModel.Runtime.VMClass.UpdateContent(IElement value, Boolean skipCheckOfBeingRoot) in C:\CapableObjectsWush\source\Eco\Eco.Linq\VMClass.cs:460
   Eco.ViewModel.Runtime.VMClass.set_Content(IElement value) in C:\CapableObjectsWush\source\Eco\Eco.Linq\VMClass.cs:398
   Eco.ViewModel.Runtime.VMClass..ctor(VMClassDescriptor vMClassDescriptor, IEcoServiceProvider sp, VMClass ownedby, IElement content, IExternalVariableList variables, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\VMClass.cs:78
   Eco.ViewModel.Runtime.VMClassDescriptor.CreateInstance(IEcoServiceProvider sp, IEcoObject iEcoObject, IExternalVariableList iExternalVariableList, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\VMClassDescriptor.cs:137
   Eco.ViewModel.Runtime.ViewModelHelper.ActOnVMClassFromViewModelRTCreator_WithOptionalVMClassSupplied(VMClass optionalVMClass, VMClassFromViewModelRTCreator x, IEcoObject root, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:366
   Eco.ViewModel.Runtime.ViewModelHelper.ActOnVMClassFromViewModelRTCreator(VMClassFromViewModelRTCreator x, IEcoObject root, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:309
   Eco.ViewModel.Runtime.ViewModelHelper.CreateFromViewModel(Type esType, EcoSpace es, IEcoObject root, ViewModelRTCreator vmc_c, GetVMClassTypeDelegate creator, IViewUICreator externalViewUICreator, Action`1 initViewModelAction, Boolean useDisplayQueueDrivenAutoPopulate, IEcoServiceProvider spToUse) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:257
   Eco.ViewModel.Runtime.ViewModelHelper.CreateFromViewModel(Type esType, EcoSpace es, IEcoObject root, ViewModelRTCreator vmc_c, GetVMClassTypeDelegate creator, Boolean useDisplayQueueDrivenAutoPopulate, IEcoServiceProvider spToUse) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:247
   Eco.ViewModel.Runtime.ViewModelHelper.CreateFromViewModel(EcoSpace es, IEcoObject root, ViewModelRTCreator vmc_c, GetVMClassTypeDelegate creator, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:238
   Eco.ViewModel.Runtime.ViewModelHelper.CreateFromViewModel(String viewmodelName, EcoSpace es, IEcoObject root, GetVMClassTypeDelegate creator, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:212
   Eco.ViewModel.Runtime.ViewModelHelper.CreateFromViewModel(String viewmodelName, EcoSpace es, IEcoObject root, Boolean useDisplayQueueDrivenAutoPopulate) in C:\CapableObjectsWush\source\Eco\Eco.Linq\ViewModelHelper.cs:182
   Eco.MVC.ModelDrivenControllerBase`1.ReCreateVMClass(String viewmodelname, IEcoObject root) in C:\CapableObjectsWush\source\Eco\Eco.MVC\ModelDrivenControllerBase.cs:868
   Eco.MVC.ModelDrivenControllerBase`1.CreateVMClassFromName(String targetViewName, Object targetViewRootObject) in C:\CapableObjectsWush\source\Eco\Eco.MVC\ModelDrivenControllerBase.cs:883
   Eco.MVC.ModelDrivenControllerBase`1.GetOnlineVMClass(String viewName, String id) in C:\CapableObjectsWush\source\Eco\Eco.MVC\ModelDrivenControllerBase.cs:273
   StreamingAppGenericAPIAndControllers.TurnkeyController_Base.Display(String view, String id) in C:\CapableObjectsWush\source\StreamingApp\StreamingAppGenericAPIAndControllers\TurnkeyControllerBase.cs:640
   lambda_method(Closure , ControllerBase , Object[] ) +149
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +157
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
   System.Web.Mvc.Async.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +22
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
   System.Web.Mvc.Async.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0() +58
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +228
   System.Web.Mvc.Async.<>c__DisplayClass7_0.<BeginInvokeActionMethodWithFilters>b__1(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
   System.Web.Mvc.Async.<>c__DisplayClass3_6.<BeginInvokeAction>b__4() +35
   System.Web.Mvc.Async.<>c__DisplayClass3_1.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +100
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +11
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +45
   System.Web.Mvc.<>c.<BeginExecute>b__151_2(IAsyncResult asyncResult, Controller controller) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +28
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +577
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +132
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0