Bug 31768 - Offline activation with XamarinVS.iOS Business license leads to "Connect to the Xamarin Build Host requires either Starter or Business or higher edition. Please log in with your Xamarin account to proceed."
Summary: Offline activation with XamarinVS.iOS Business license leads to "Connect to t...
Status: RESOLVED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.11 (C5)
Hardware: PC Windows
: Normal major
Target Milestone: 4.0.0 (C6)
Assignee: Adrian Alonso
URL:
Depends on:
Blocks:
 
Reported: 2015-07-08 17:46 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2015-08-31 12:44 UTC (History)
6 users (show)

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


Attachments
XamarinVS log files (3.82 KB, application/zip)
2015-07-08 17:46 UTC, Brendan Zagaeski (Xamarin Team, assistant)
Details


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:
RESOLVED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2015-07-08 17:46:38 UTC
Created attachment 11944 [details]
XamarinVS log files

Offline activation with XamarinVS.iOS Business license leads to "Connect to the Xamarin Build Host requires either Starter or Business or higher edition. Please log in with your Xamarin account to proceed."




## Regression status: regression between XVS 3.9 and XVS 3.11

BAD:  XamarinVS 3.11.666.0 (ebae43a) + Xamarin.iOS 8.10.3.2 (8b265d6)
GOOD: XamarinVS 3.9.547.0  (20fd2f0) + Xamarin.iOS 8.9.1.3  (f7736a4)




## "Simplified" steps to reproduce

1. On a system where XamarinVS.iOS is currently working properly (with Business licenses or higher), delete "%APPDATA%\Xamarin\account.json".

2. Open Visual Studio and attempt to reconnect to the previously paired build host (for example by attempting to build and deploy an iOS app project).




## "Real" steps to reproduce

This is the "real" use case where "%PROGRAMDATA%" contains valid licenses while "%APPDATA%\Xamarin\account.json" is empty. This "real" use case arises when customers perform offline activation.



1. Log out of your Xamarin account in Visual Studio.



2. Download the Xamarin.iOS license file from [1].

[1] https://store.xamarin.com/account/my/subscription/computers/



3. Install the license file in [2] (as discussed on [3]).

[2] C:\ProgramData\MonoTouch\License\monotouch.licx

[3] http://developer.xamarin.com/guides/ios/getting_started/installation/offline_activation/



4. Open Visual Studio and attempt to reconnect to the previously paired build host (for example by attempting to build and deploy an iOS app project).




## Results

The following error appears in the Error List:

> Connect to the Xamarin Build Host requires either Starter or Business or
> higher edition. Please log in with your Xamarin account to proceed.

The user is not allowed to connect to the build host.

It is perhaps helpful to note that command line builds _are_ able to connect to the build host and build successfully.




## Expected results

The user should be allowed to connect to the build host.




## Workaround

Fill "%APPDATA%\Xamarin\account.json" with the following "dummy" content:

{"ssouser":{"guid":"","parentguid":null,"trackingguid":"","organizationname":"","email":"","firstname":"","lastname":"","nickname":"","twolettercountry":"US","phonenumber":null,"company":null,"access":1},"ssotoken":"","server":null}
Comment 2 PJ 2015-07-13 12:41:02 UTC
Missed freeze deadline, added card to trello though: https://trello.com/c/41qrevr8/94-xvs-31768.

Depending on the extent of the fix this will either be for C5SR4 or come with XMA. Adding to C5SR4 for now.
Comment 3 PJ 2015-08-17 14:25:55 UTC
Missed C5SR4 freeze deadline as well. Moving to C6.
Comment 5 xamarin-release-manager 2015-08-31 12:44:21 UTC
Fixed in version 4.0.0.1103 (master)

Author: Jose Gallardo
Commit: 2b42696ab70bb92030e3575446ee09c1fed8e855 (xamarin/XamarinVS)