I am getting a "LoadFromContext Occurred" exception when I try to debug test cases in Visual Studio 2015. This is being done through the test explorer window and by right clicking on a test method and selecting "Debug Selected Tests." The exception is :
LoadFromContext occurred
Message: Managed Debugging Assistant 'LoadFromContext' has detected a problem in 'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW\x64\te.processhost.managed.exe'.
Additional information: The assembly named 'Wex.Logger.Interop' was loaded from 'file:///C:/PROGRAM FILES (X86)/MICROSOFT VISUAL STUDIO 14.0/COMMON7/IDE/COMMONEXTENSIONS/MICROSOFT/TESTWINDOW/Wex.Logger.Interop.DLL' using the LoadFrom context. The use of this context can result in unexpected behavior for serialization, casting and dependency resolution. In almost all cases, it is recommended that the LoadFrom context be avoided. This can be done by installing assemblies in the Global Assembly Cache or in the ApplicationBase directory and using Assembly.Load when explicitly loading assemblies.
I tried following the instructions on the answer here, but disabling the UI Debugging Tools for XAML does not seem to affect things.
'Wex.Logger.Interop' is not an assembly I seen under my project references and is not something I import or load in my code. If I run my test cases normally, they will run without throwing this exception. It only occurs when I try debugging the test methods. I can run my test cases through the test explorer, they finish as expected. If I build and run my solution, it runs. If I debug my project, that doesn't cause an exception. But if I try debugging any of my test methods, it throws the LoadFromContext Occured exception.