Bug 18656 - Build Host connectivity is a problem. Sometimes it thinks there is another instance of visual studio connected to it.
Summary: Build Host connectivity is a problem. Sometimes it thinks there is another i...
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 1.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: 4.0.0 (C6)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-30 23:48 UTC by curtis.harrison@wavetronix.com
Modified: 2015-09-24 08:37 UTC (History)
9 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description curtis.harrison@wavetronix.com 2014-03-30 23:48:28 UTC
Description of Problem:
Build host thinks that there is another instance of Visual Studio connected to it, when there is NOT.

Steps to reproduce the problem:
1. Open Visual Studio and open an iOS project.
2. You get a Connection to Xamarin.iOS Build Host failed error message.


Actual Results:
Error connecting to build host

Expected Results:
Should be able to connect to the build host.

How often does this happen? 
About every other time that I open Visual Studio and open an iOS project.

Additional Information:
This becomes quite annoying since it requires me to close Visual Studio, then close my build host, then open my build host, then 'unpair' the build host, then open visual studio, then pair my build host, then open the iOS project in Visual Studio, then type in the new PIN from the Build Server window.

Why can't we just have the option to FORCE connection to build server.  My guess is that 90% of your customers have ONLY ONE computer ever talking to the build server.  How about assume that whoever is trying to connect to the build server wins (or at least have an option to do it this way).  Then, there's never a problem connecting to the build server.
Comment 1 Sadik Ali 2014-03-31 10:17:12 UTC
I am able to reproduce this issue. Steps are :
1. Create iOS project.
2.Connect to build host
3. Put MAC to sleep
4. Stop debugging of iOS project.
5. Try to reconnect to build host from the very same instance of visual studio.
6. I got the error of 'Another Instance of Visual Studio connected to it.
7. After this, I was not able to close the application. I exit the VS forcefully from Task Manager.
8. Then I open the same application and again get the error of step 6.

On opening new application, I was getting the same error.

Screen cast info regarding error :
http://www.screencast.com/users/Shruti3490/folders/Default/media/3ee1e51b-9baa-4e58-8b95-30c518840155

Environment Info :
Environment Info :
Microsoft Visual Studio Professional 2012
Version 11.0.50727.1 RTMREL
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Professional

LightSwitch for Visual Studio 2012   04938-004-0033001-02986
Microsoft LightSwitch for Visual Studio 2012

Office Developer Tools   04938-004-0033001-02986
Microsoft Office Developer Tools

Team Explorer for Visual Studio 2012   04938-004-0033001-02986
Microsoft Team Explorer for Visual Studio 2012

Visual Basic 2012   04938-004-0033001-02986
Microsoft Visual Basic 2012

Visual C# 2012   04938-004-0033001-02986
Microsoft Visual C# 2012

Visual C++ 2012   04938-004-0033001-02986
Microsoft Visual C++ 2012

Visual F# 2012   04938-004-0033001-02986
Microsoft Visual F# 2012

Visual Studio 2012 Code Analysis Spell Checker   04938-004-0033001-02986
Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by
Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition
Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from
Lernout & Hauspie Speech Products N.V. All rights reserved.

Visual Studio 2012 SharePoint Developer Tools   04938-004-0033001-02986
Microsoft Visual Studio 2012 SharePoint Developer Tools

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

NuGet Package Manager   2.0.30625.9003
NuGet Package Manager in Visual Studio. For more information about NuGet, visit
http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.0
Microsoft Visual Studio extension to visualize aggregated summaries from the
PreEmptive Analytics product.

SQL Server Data Tools   11.1.20627.00
Microsoft SQL Server Data Tools

Web Developer Tools   1.0.30710.0
Microsoft Web Developer Tools contains the following components:
Page Inspector: Tool that offers an efficient way to decompose Web Applications
and diagnose front-end issues.
Web Publishing: Extensions required for Web Publishing for both hosted servers
as well as on premises.
Web Form Templates: Includes the default templates for Web Form Applications.
Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly
enhance the development experience.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for
Workflow Manager.

Xamarin.iOS   1.10.47 (3d6a125d)
Visual Studio extension to enable development for Xamarin.iOS
Comment 2 Zack Gramana 2014-04-01 18:26:48 UTC
A customer passed this simple process which I was able to use to reproduce the issue on my local workstation as well:

"Pair everything, run once, close the simulator. Open windows device manager, disable the network card, reenable it and from that point you can't run or pair again. Plus likely visual studio will hang."

In my case, however, Visual Studio did not hang but instead reported that "another instance of Visual studio is using the Build Host on 10.0.0.xxx."
Comment 3 Zack Gramana 2014-04-01 18:34:58 UTC
At that point, my Visual Studio was in an inconsistent state, believing that a build is ongoing and is not cancelable.
Comment 4 Fredy Wenger 2014-08-08 03:53:18 UTC
I have installed the latest update to Xamarin for windows yesterday (3.3.47).
=> The bug is still here!
  - The MAC (with started Build Host) was running over night
  - I start my Windows-developer-machine
  - The first debug-session was running
  => After that, the error message (Another instance...) was showed automatically
=> That's very annoying!
Comment 5 Enzo Heredia 2015-06-30 13:53:34 UTC
fixed in XMA
Comment 6 Akhilesh kumar 2015-08-14 10:14:33 UTC
I have tried to reproduce this issue followed by steps mentioned in comment 1 and now this issue working fine. I am not getting any error and able to connect the mac agent successfully.

Here is the screencast: http://www.screencast.com/t/h3TO1WIY

Hence I am closing this issue.

Environment info:
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Version 4.5.51641

Xamarin   4.0.0.881 (13d3d50)
Xamarin.Android   5.1.99.486 (d77313a)
Xamarin.iOS   8.13.0.39 (66a0544)

Mac agent info:
XI 8.13.0.113
Xcode 6.4