Application crash while using v11.0.0.2323

Hi All,

When I run my asp.net 8 web application independently, it works normally, but when it be started by ANTS performance profiler, it shows error as below:



fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
      An unhandled exception has occurred while executing the request.
      System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal 'parameter #1': Cannot marshal managed types when the runtime marshalling system is disabled.
         at _ANTS_Assembly_Load_With_Pdb(Byte&, Int32)
         at System.Reflection.Assembly.Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
         at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.CompileAndEmit(RazorCodeDocument codeDocument, String generatedCode)
         at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.CompileAndEmit(String relativePath)
         at Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.RuntimeViewCompiler.OnCacheMiss(String normalizedPath)


Any ideas?
thank you.

Sign In or Register to comment.