Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/58138793/system-text-json-jsonelement-toobject-workaround by dbc_MinLength
Run-time exception (line 13): The type initializer for 'Z.Expressions.EvalManager' threw an exception.

Stack Trace:

[System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
   at System.Security.CodeAccessPermission.Demand()
   at System.Reflection.RuntimeAssembly.VerifyCodeBaseDiscovery(String codeBase)
   at System.Reflection.RuntimeAssembly.GetName(Boolean copiedName)
   at Z.Expressions.EvalContext..cctor()

[System.TypeInitializationException: The type initializer for 'Z.Expressions.EvalContext' threw an exception.]
   at Z.Expressions.EvalContext..ctor()
   at Z.Expressions.EvalManager..cctor()

[System.TypeInitializationException: The type initializer for 'Z.Expressions.EvalManager' threw an exception.]
   at Z.Expressions.EvalManager.get_DefaultContext()
   at Z.Expressions.EvalLinq.Execute(String code, Boolean isQueryable, Expression exp, Object[] parameters)
   at System.Linq.EnumerableDynamic.Execute[TValue](IEnumerable source, String expression, Object parameter)
   at Program.Main() :line 13
Last Run: 11:12:48 pm
Compile: 0.239s
Execute: 0.108s
Memory: 3.75Mb
CPU: 0.188s