Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] XUnitTest by RikdeRooij
Entry
BenchmarkDotNet.Running.BenchmarkRunner
BenchmarkDotNet.Reports.Summary RunWithDirtyAssemblyResolveHelper(System.Type, BenchmarkDotNet.Configs.IConfig, System.String[])
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MethodAccessException: Attempt by security transparent method 'BenchmarkDotNet.Configs.ImmutableConfigBuilder.Create(BenchmarkDotNet.Configs.IConfig)' to access security critical method 'System.Collections.Immutable.ImmutableArray.ToImmutableArray<BenchmarkDotNet.Columns.IColumnProvider>(System.Collections.Generic.IEnumerable`1<BenchmarkDotNet.Columns.IColumnProvider>)' failed.

Assembly 'BenchmarkDotNet, Version=0.13.5.0, Culture=neutral, PublicKeyToken=aa0ca2f9092cefc4' is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself.  In order to access security critical code, this assembly must be fully trusted.
   at BenchmarkDotNet.Configs.ImmutableConfigBuilder.Create(IConfig source)
   at BenchmarkDotNet.Running.BenchmarkConverter.MethodsToBenchmarksWithFullConfig(Type type, MethodInfo[] benchmarkMethods, IConfig config)
   at BenchmarkDotNet.Running.BenchmarkRunner.RunWithDirtyAssemblyResolveHelper(Type type, IConfig config, String[] args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Benchmark.<>c__DisplayClass2.<Run>b__0() in c:\Windows\Temp\cmfpxyd5.0.cs:line 147
   at Benchmark.RunWithExceptionHandling(Func`1 run) in c:\Windows\Temp\cmfpxyd5.0.cs:line 155
Cached Result
Last Run: 7:42:56 pm
Compile: 0.724s
Execute: 0.396s
Memory: 3.55Mb
CPU: 0.359s