Problem with invoke remotely on dev express grid

Ask general questions here.
Posts: 62
Joined: Wed Mar 09, 2011 4:40 pm

Problem with invoke remotely on dev express grid

Post by vengaishiva » Tue Jul 19, 2011 3:46 pm

I am having an application which contains a dev express grid. In my automation c# code(which is a visual studio solution with name ConsoleApp1), am using invoke remotely on this grid to perform some functions.

The problem is once i have executed the automation code(ConsoleApp1), am making some changes in my ConsoleApp1 code and am trying to run it next time. But the code is not running showing an error message, 'Unable to copy file "obj\Debug\ConsoleApp1.exe". The process cannot access the file bin\Debug\ConsoleApp1.exe because it is being used by another process'.

When i close the application being automated (i.e the application which contains dev express grid) and open it again, i can build and run the ConsoleApp1 mentioned above.

It seems that when i use invokeremotely, resources are not getting freed properly, until the application under automation is closed. Any help on this? :?

Siva R S

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Problem with invoke remotely on dev express grid

Post by Ciege » Tue Jul 19, 2011 4:52 pm

Unfortunately, that's the way it is... When you use Invoke Remotely you have made a connection to the AUT that is not closed until the AUT is closed. You must close the AUT for your script to properly compile.
You can move the invoke remotely to a referenced DLL so that you only need to build that section of code when and if it changes and it should alleviate most of your issues with being unable to build.
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!