Bug 15321 - Unable to switch to another build host getting PIN code invalid
Summary: Unable to switch to another build host getting PIN code invalid
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 0.x Insider Preview
Hardware: PC Windows
: High critical
Target Milestone: 1.6.x (connection)
Assignee: dean.ellis
Depends on:
Reported: 2013-10-10 08:39 UTC by Prashant manu
Modified: 2015-01-05 11:20 UTC (History)
11 users (show)

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

Log File (60.15 KB, text/plain)
2013-11-04 11:29 UTC, Mark Eisenberg

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:

Description Prashant manu 2013-10-10 08:39:49 UTC
Steps to reproduce this issue:
1. Open VS.
2. Open or create any iOS application.
3. Connect to Build Host.
4. Observ that VS connected to Build host.
5. Now try to connect to another build host.
6. Enter PIN from build host which you are trying to connect.

Actual Result: When user is connected to an build host(machine 1) and he want to connect to another build host(machine 1) and entering the PIN from another build host(machine 2), then we are getting "The PIN you entered was invalid. Please ensure you have entered correct PIN".
However, If user close and reopen VS again and try to connect with same build Host(machine 2) with same PIN then it get connected successfully with build host (machine 2).  

Expected Result: User should able to connect to another build host.

Supplement info:

Environment details:
All Windows
VS 2013/2012/2010
iOS for VS 1.6.77
Comment 1 dean.ellis 2013-10-10 10:55:35 UTC
Fixed in XamarinVS/master/bfc111cff5 and cherry-picked to 1.6
Comment 2 Atin 2013-10-15 05:45:34 UTC
Today, we have checked this with following builds:

MTVS 1.6.89

This issue is still exists User is not able to switch another mac build host from window machine, it gives a error "The PIN you entered was Invalid". However if user close and reopen VS again and try to connect with same build
Host with same PIN then it get connected successfully with build
host .  

Hence reopening this issue
Comment 3 dean.ellis 2013-10-15 09:41:17 UTC
OK, this is a bit of a weird bug. As I only have access to 1 mac, I'm having to do this one blind. The issue seems to be that the PairingCheck is using the current connected server to verify the pin rather than connecting to the new one. This should be fixed in XamarinVS/mtvs-1.6-series/9116775f84

I have also added some additional logging to this area and additional logging should be available in 


There will be a folder for Vs 2010/12 etc.

There was a bug in the logging stuff where it only logged Warning messages (not info ) this was fixed in XamarinVS/mtvs-1.6-series/c1d4fcff91

I'm going to mark this as fixed since I have reworked that area and the logic seem sound. However if you do still get the error can you reopen and attach the log files from the location I mentioned above. Note, the logs will only be useful IF they are from a build after the logging fix XamarinVS/mtvs-1.6-series/c1d4fcff91. ( i.e a build greater that 1.6.93)
Comment 4 Mohit Kheterpal 2013-10-15 11:39:46 UTC
Today we have checked this issue on following builds :

VS 2013/2012
MTVS 1.6.94

Now we are able to switch Mac build host server without restarting VS. 

Hence closing this issue.
Comment 5 Mark Eisenberg 2013-11-04 11:29:07 UTC
Created attachment 5326 [details]
Log File

Here's a log file for you where I am getting issue.

Win 8.1
X.IOS 1.8.266

Getting one of two behaviors with no consistent repeatability:
1) Invalid PIN message on VS side
2) Spins while connecting until I cancel