Symptoms:
When you attach the profiler to the process, it shows the message "Preparing the profiler..." for about 1 minute and then fails with the error:
"Unable to start profiling. The system cannot find the file specified".
____________________________________________________________________________________
Possible cause:
CLR doesn't start the "attach" thread for the application.
To resolve the issue:
-
Open
regedit.exe -
Find
HKLM\SYSTEM\CurrentControlSet\Services\<YourServiceName> -
Add a new multi-string value (
REG_MULTI_SZ) with theEnvironmentname -
Add value
COMPlus_AttachThreadAlwaysOn=1, then press Enter to apply the key change - Restart your service
Comments
0 comments
Please sign in to leave a comment.