Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 19306 [details]
unhandled activation error
Getting this error on first run, build of a Xamarin.Forms project after updating to the Beta channel.
Couple things I've done recently in testing new builds that could be related.
- I uninstalled VS 2017 RC
- I repaired VS 2015 Community
- I was still missing Xamarin bits, so I modified VS 2015 to reinstall the Xamarin bits
Then I was able to start a new Xamarin Forms project.
I can login with my account on the same Windows machine via the browser.
I get the same error when using the Tools > Xamarin Account... option to login.
The build fails because it is looking for a license and cannot find it.
Created attachment 19307 [details]
vs 2015 environment
Here's my environment dump from the About modal.
## Non-engineering team preliminary review
Depending on the "flavor" of this bug from your side (for example, whether you're just looking to get up and running or whether you're interested to help study the bug a bit), there are a couple possible directions you could try for additional preliminary data gathering:
1. If you get a chance, please collect and attach back the IDE logs files from "Help > Xamarin > Zip Xamarin Logs". Since that command zips the logs from only the current VS session, be sure to run that log gathering step after hitting the activation error once more (in the same VS session).
2. If you're looking to get back up and running as quickly as possible, does downgrading  back to XamarinVS 4.2.2 (Cycle 8 Service Release 2) resolve the issue?
Thanks in advance!
Created attachment 19309 [details]
vs xamarin logs
Interesting. It appears the key excerpt from the log file is:
> Xamarin.VisualStudio.ActivationManager|Error|0|Failed to update iOS license.
> System.Exception: Could not load machine data ---> System.ComponentModel.Win32Exception: The system cannot find the file specified
> at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
> at System.Diagnostics.Process.Start()
> at Xamarin.Components.Ide.Licensing.ActivationMachineData.<>c__DisplayClass3_0.<GetRegistrationXmlAsync>b__0()
> at System.Threading.Tasks.Task`1.InnerInvoke()
> at System.Threading.Tasks.Task.Execute()
> --- End of stack trace from previous location where exception was thrown ---
If I recall correctly, it might be incorrect for the `System.Diagnostics.Process.Start()` method to be called at all in this code path on Windows. If that method is always getting called on Windows when the user tries to log in with an an old-style Xamarin standalone license, then I believe this should in theory be easy to replicate on any system. I will temporarily assign the bug to myself to take a quick try at replicating the issue locally.
Created attachment 19316 [details]
IDE logs (from additional local confirmation)
It looks like Comment 4 is approximately correct. I suspect the current Beta build of XamarinVS might be somehow using a library that was compiled with a missing compile-time define and so doesn't have the expected Windows-specific behavior.
## Regressions status: regression between Cycle 8 Service Release 2 and Cycle 9 Beta
GOOD: XamarinVS 220.127.116.11 (27a9b40) "Cycle 8 Service Release 2"
BAD: XamarinVS 18.104.22.1680 (ff5ef6d) "Cycle 9 Beta 1"
## Steps tested
1. Navigate to "Tools > Xamarin Account".
2. Click the "Log In" button and complete the worfklow to log in with an old-style standalone Xamarin account.
## GOOD Results (XamarinVS 22.214.171.124 (27a9b40) "Cycle 8 Service Release 2")
The login completes without error, and the dialog shows the old-style standalone Xamarin license entitlements.
## BAD Results (XamarinVS 126.96.36.1990 (ff5ef6d) "Cycle 9 Beta 1")
The login fails with the dialog as described in Comment 0:
> Unhandled Activation Error
> Could not load machine data
And my log files (attached) show the same error from Comment 4.
## Additional test environment info (brief)
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Windows 10 (64-bit) Version 1607 (OS Build 14393.693)
*** Bug 51560 has been marked as a duplicate of this bug. ***
*** Bug 51234 has been marked as a duplicate of this bug. ***
An update for Regression Status of this issue :
Regression Status : REGRESSION : Working fine with C9 XVS 188.8.131.529.
This bug is already in progress.
Fixed in version 184.108.40.2068 (master)
Commit: e553ae80032cbf9d33aa945ffc2df9b4d0b8a688 (xamarin/XamarinVS)
Fixed in version 220.127.116.119 (cycle9)
Commit: af46929e7d87f4d2fbdc5a18ab778a34715d5296 (xamarin/XamarinVS)
*** Bug 51603 has been marked as a duplicate of this bug. ***