Hi there,
When I build my project I get this error:
Unable to copy file "obj\Debug\Trend.exe" to "bin\Debug\Trend.exe". The process cannot access the file 'bin\Debug\Trend.exe' because it is being used by another process. (MSB3021)
Only when I close my application and start again I'm able to build and run the test.
I'm using a InvokeRemotely method in my test, could it have anything to do with it?
Can someone help?
Thanks,
Carla Neves
Compilation Error
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
You are right, if you use the Control.InvokeRemotely method, your automation assembly (the DLL or EXE that contains the delegate being called by InvokeRemotely) is loaded by the application under test in order to invoke your delegate. The only way to release a .NET assembly again is to close the application. So, if you use the InvokeRemotely method, you will need to close your AUT when you recompile your automation code.
Regards,
Alex
Ranorex Support Team

Regards,
Alex
Ranorex Support Team
-
- Posts: 14
- Joined: Thu Feb 26, 2009 2:08 pm
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact: