After you run a profiling session, dotMemory shows the error window "dotMemory.exe has lost connection with the process JetBrains.dotMemory.ExternalProcessor.exe...".
- Antivirus software loads a DLL into the JetBrains.dotMemory.ExternalProcessor.exe process and prevents it from normal operation.
Check whether antivirus is a problem
Using Windows command-line run the following command:
"<dotMemory installation path>\JetBrains.dotMemory.ExternalProcessor.exe" -name=test
(for dotMemory 4.1 and earlier the command is: JetBrains.dotMemory.ExternalProcessor.exe test)
If you get the following error message “Unhandled Exception: System.IO.FileLoadException: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.”, then antivirus software loads a DLL into the JetBrains.dotMemory.ExternalProcessor.exe process and prevents it from normal operation.
If you don’t get the message shown above, then probably, antivirus is not a problem.
1. Open the JetBrains.dotMemory.ExternalProcessor.exe.config file located in the <dotMemory installation path> folder.
2. Replace the line:
with the following one:
Alternatively, you can replace the configuration file with the one attached to this post.
- Firewall software prohibits named pipes communication.
Allow named pipes communication in your firewall so that dotMemory.exe and JetBrains.dotMemory.ExternalProcessor.exe processes can communicate with each other.
- Something in your environment prohibits "Create Global Objects" action for unprivileged user account.
Control Panel\All Control Panel Items\Administrative Tools\Local Security Policy\Local Policies\User Rights Assignment, allow "Create Global Objects" policy, restart computer.