Bug 15783 - Exception on startup
Summary: Exception on startup
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Activation ()
Version: 0.x Insider Preview
Hardware: PC Windows
: High major
Target Milestone: ---
Assignee: Dominique Louis
Depends on:
Reported: 2013-10-29 10:21 UTC by Miguel de Icaza [MSFT]
Modified: 2014-03-27 08:53 UTC (History)
3 users (show)

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:

Description Miguel de Icaza [MSFT] 2013-10-29 10:21:44 UTC
Freshly installed version of our VS/iOS plugin,: XAmarin.iOS_Setup-

As posted on OCtober 29th, 8am by DOminique.   The exception:

Mono.VisualStudio.Shell.ShellPackage Error: 0 : Unhandled exception in Task
System.TypeInitializationException: The type initializer for 'Mono.VisualStudio.Extension.UIThread' threw an exception. ---> System.InvalidOperationException: The current SynchronizationContext may not be used as a TaskScheduler.
   at System.Threading.Tasks.SynchronizationContextTaskScheduler..ctor()
   at System.Threading.Tasks.TaskScheduler.FromCurrentSynchronizationContext()
   at Mono.VisualStudio.Extension.UIThread..cctor()
   --- End of inner exception stack trace ---
   at Mono.VisualStudio.Extension.UIThread.get_Default()
   at Mono.VisualStudio.Shell.ShellPackage.LicenseSyncCompleted(Object sender, EventArgs e)
   at Xamarin.Components.Ide.Activation.ActivationService.OnSyncCompleted()
   at Xamarin.Components.Ide.Activation.ActivationService.<OnHandlerEntitlementsChanged>b__33(Task`1[] t)
   at System.Threading.Tasks.GenericDelegateCache`2.<.cctor>b__3(Task`1 wrappedAntecedents, Object state)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
Comment 1 Miguel de Icaza [MSFT] 2013-10-29 11:05:14 UTC
Likely my screwed up setup from having a stale VS.

NO longer happens
Comment 2 narayanp 2014-03-27 08:53:35 UTC
As per comment@1 closing this issue.