Dear Ranorex,
When I open Ranorex studio for the first time and then run my solution, the solution runs as expected. However when I try to run the same solution a second time from within studio I get an error message which says:
“Unable to copy file "obj\x86\Release\\<SolutionName>.exe" to "bin\Release\\<SolutionName>.exe". The process cannot access the file 'bin\Release\<SolutionName>.exe' because it is being used by another process. (MSB3021)”
I can’t see anything in my task manager to indicate a process that was not properly closed. Currently, the only workaround I have is to close Ranorex studio, re-open it and then run the solution.
This problem does not occur when I run the solution outside of Ranorex studio from the bin folder – In this scenario I can run the solution multiple times with no error.
My solution currently has a lot of data driven tests, the source of which is an excel spreadsheet (not sure if this is relevant).
Please let me know if you need any more information. I have attached a screenshot of the error along with a screenshot of my task manager running processes taken after the solution has run for the first time.