Sandbox loading AppDomain disables debugger

I am creating a sandbox AppDomainso that I can load the assembly and release it.

var sandbox = AppDomain.CreateDomain("Sandbox", null, 
   AppDomain.CurrentDomain.SetupInformation);

However, when I Loadbuild in sandbox, the debugger crashes. I am in ASP.NET.

var assemblyName = AssemblyName.GetAssemblyName(assemblyPath);
var assembly = pluginDomain.Load(assemblyName); // crash here

Does anyone know why this is crashing?

+3
source share
1 answer

Can you talk about what you mean by the "Fault Debugger". Visual Studio itself crashes, the debugger simply stops and returns to Visual Studio development mode, a pop-up window appears with exceptions, etc.

For all of these cases, although the first thing I would like to do is change the following debugger options and repeat the script.

- Tools -> Options -> Debugger
- Uncheck: Enable implicit property evaluation
- Uncheck: Enable Just My Code
+1
source

Source: https://habr.com/ru/post/1795844/


All Articles