Visual Studio brings up a modal dialog when running against a cluster. This in turn causes the agent to eventually terminate the job as it is not making any progress.
There are a number of possible reasons, and this list is by no means complete. These are the scenarios we have seen so far:
Connecting/disconnecting to the console while running msdev can cause msdev to crash. This is a known bug in msdev https://support.microsoft.com/default.aspx?scid=kb;en-us;235680, and the only recommendation is to not do this.
Sometimes these files: *.ncb, *.opt, *.plg, *.aps, *.clw get corrupted using msdev (Visual Studio 6). This is a known issue in msdev, and the only way to solve it is to erase those files.
There were Electric Cloud Agents in the cluster for which devenv had never been initialized. This causes devenv to bring up a modal dialog on the console when it is started. You can use psexec -u to check all users on the nodes.
It is important that the Electric Cloud Agents are properly set up to have dedicated users. By default, each agent process on the agent hosts will run as a specific user (ECloudInternalUser1, ECloudInternalUser2 etc.). If this is not the case, the build will fail in unpredictable ways. Check what user owns the agent.exe processes on each node by looking into the Windows process list.
The Visual Studio 8 (and later) setting for parallel builds must be 1. The parallelism comes from multiple agents on that machine.
In VS 2005, select Tools->Options.
In the Option dialog, open "Projects and Solutions->Build and Run" tab.
Set "maximum number of parallel project builds" to 1.
The Electric Cloud Visual Studio Plugin may be affected by other plugins. Remove those plugins on your host machines.
Another possible reason is that the plugin has a problem parsing the solution/projects. In this case, it is a good idea to set the environment variable ECADDIN_DONT_PARSE_PROJECTS. This will break the solution apart on the project level, avoiding some of the parsing issues. If that still doesn’t work, disable the plugin altogether by setting ECADDIN_DONT_USE. If the build still breaks, the issue is more likely an issue with the setup of the agent machines.
The Visual Studio 8 (and later) 'customer experience improvement program' setting is not initialized. To initialize, run Visual Studio and click the system tray icon or select 'Help->Customer Feedback Options…'. The setting can be off or on. Perform this for all ECloudInternalUsers on all agents.