21 Februari 2006 14:10
I keep getting this error when performing a launch from Performance Explorer:
PRF0018: File DemoConsole.exe is already instrumented
How do I remove the current instrumentation and start over?
23 Februari 2006 17:04
When we do our in-place instrumentation we try to restore all your binaries to their correct uninstrumented states after a profiling run. However, in your specific case this does not seem to have happened. To get you back to uninstrumented binaries you can do one of two things:
1. Look in the directory where the binary lives. When we instrument, we backup the old binary by renaming it with a .orig tag on the end. So if you find a file called DemoConsole.exe.orig next to the instrumented DemoConsole.exe then just delete DemoConsole.exe and rename DemoConsole.exe.orig to DemoConsole.exe.
2. If you can't find DemoConsole.exe.orig, then you will have to rebuild your project. There is no way to "remove" instrumentation from a binary that has already been instrumented.
Also, I'm interested in why your binaries did not get restored at the end of the profiling run. Did you choose the option to relocate instrumented binaries in the IDE? And how did you create your performance session? Did you use the wizard? Or manually add your project to a performance session? Or manually add a binary location to the performance session? Sorry, I know that it's a lot of questions, but I've never seen reports of this behaviour and your answers can help me figure out why this happened.
28 Desember 2011 2:12I have a similar issue while doing automated test. The code coverage only works for the first time I run it, from the second time, it always complains that the dll has been instrumented then just skip the code coverage. I added this assembly manually in testsetting, what should I do to let it automatically recover the original assembly? Thanks.