Page 1 of 1

TypeLoadException when running the project with MemProfiler

PostPosted: Wed Jan 10, 2018 10:36 pm
by lucad83
Good morning,
I'm trying to run the evaluation version of your product but I can't start my program through the profiler.

The program, which is a NetCore Console App, runs fine on its own, but as soon as I try to debug it with the profile, the first line of code hits the following Exception:
System.TypeLoadException: 'Could not load type System.CannotUnloadAppDomainException' from assembly 'System.Private.CoreLib, Version=, Culture=neutral,PublicKeyToken=7cec85d7bea7798e.

I am running Visual Studio Enterprise 15.5.3. on Windows 2012 R2 Standard.
dotnet version is 2.1.4.

Any ideas what might be going on? Thanks.

Re: TypeLoadException when running the project with MemProfi

PostPosted: Thu Jan 11, 2018 2:15 pm
by Andreas Suurkuusk
The CannotUnloadAppDomainException class is used internally by the dispose tracker, but it seems like it is not always available in .NET Core. We have not been able to reproduce this error, but we have modified the dispose tracker a bit and we no longer use the CannotUnloadAppDomainException class.

Can you download the latest build using the link below and see if it works better? ... 5_5_71.exe