Here is what to include in your request to make sure we implement a solution as quickly as possible.
Dynamic objects created by the library throw the following exception when accessing their properties in Blazor Wasm
If you are seeing an exception, include the full exception details (message and stack trace).
Exception message: Unhandled exception rendering component: Operation is not valid due to the current state of the object.
Stack trace: crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Operation is not valid due to the current state of the object.
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at System.Reflection.Emit.RuntimeGenericTypeParameterBuilder.GetGenericParameterConstraints()
at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddAggregateToSymbolTable(NamespaceOrAggregateSymbol parent, Type type)
at Microsoft.CSharp.RuntimeBinder.SymbolTable.LoadSymbolsFromType(Type type)
at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetCTypeFromType(Type type)
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.GetArgumentType(ICSharpBinder p, CSharpArgumentInfo argInfo, Expression param, DynamicMetaObject arg, Int32 index)
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateArgumentArray(ICSharpBinder payload, Expression[] parameters, DynamicMetaObject[] args)
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore(ICSharpBinder payload, Expression[] parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding)
at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(ICSharpBinder payload, Expression[] parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding)
at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(ICSharpBinder action, RuntimeBinder binder, DynamicMetaObject[] args, IEnumerable`1 arginfos, DynamicMetaObject onBindingError)
at Microsoft.CSharp.RuntimeBinder.CSharpGetMemberBinder.FallbackGetMember(DynamicMetaObject target, DynamicMetaObject errorSuggestion)
at System.Dynamic.DynamicObject.MetaDynamic.<>c.<BindGetMember>b__2_0(MetaDynamic this, GetMemberBinder b, DynamicMetaObject e)
at System.Dynamic.DynamicObject.MetaDynamic.CallMethodWithResult[GetMemberBinder](MethodInfo method, GetMemberBinder binder, Expression[] args, Fallback`1 fallback, Fallback`1 fallbackInvoke)
at System.Dynamic.DynamicObject.MetaDynamic.CallMethodWithResult[GetMemberBinder](MethodInfo method, GetMemberBinder binder, Expression[] args, Fallback`1 fallback)
at System.Dynamic.DynamicObject.MetaDynamic.BindGetMember(GetMemberBinder binder)
at System.Dynamic.GetMemberBinder.Bind(DynamicMetaObject target, DynamicMetaObject[] args)
at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)
at System.Runtime.CompilerServices.CallSiteBinder.BindCore[Func`3](CallSite`1 site, Object[] args)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[Object,Object](CallSite site, Object arg0)
at WasmDynamicLinq.Pages.Home.OnInitialized() in D:\source\WasmDynamicLinq\Pages\Home.razor.cs:line 49
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
Here is what to include in your request to make sure we implement a solution as quickly as possible.
1. Description
Dynamic objects created by the library throw the following exception when accessing their properties in Blazor Wasm
2. Exception
If you are seeing an exception, include the full exception details (message and stack trace).
3. Fiddle or Project
Run the home page to reproduce.
WasmDynamicLinq.zip