Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
GitHub.VisualStudio.UI.Views.Controls.TwoFactorControl
2015-05-09 23:03:22.1357|INFO|thread:32|LoginTabViewModel|Error logging into 'https://github.com/' as 'nrcraver@gmail.com'
Microsoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part "GitHub.VisualStudio.UI.Views.Controls.TwoFactorControl". ---> System.InvalidOperationException: The calling thread must be STA, because many UI components require this.
at System.Windows.Input.InputManager..ctor()
at System.Windows.Input.InputManager.GetCurrentInputManagerImpl()
at System.Windows.Input.KeyboardNavigation..ctor()
at System.Windows.FrameworkElement.FrameworkServices..ctor()
at System.Windows.FrameworkElement.EnsureFrameworkServices()
at System.Windows.FrameworkElement..ctor()
at System.Windows.Controls.Control..ctor()
at GitHub.UI.SimpleViewUserControl..ctor() in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.UI.Reactive\Controls\SimpleViewUserControl.cs:line 23
at GitHub.UI.ViewUserControl..ctor() in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.UI.Reactive\Controls\ViewUserControl.cs:line 11
at GitHub.VisualStudio.UI.Views.Controls.TwoFactorControl..ctor() in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.VisualStudio\UI\Views\Controls\TwoFactorControl.xaml.cs:line 18
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass12_0.<CreateExportFactory>b__0()
at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass44_0.<CreateExportFactory>b__0()
at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_0`1.<As>b__0()
at System.ComponentModel.Composition.ExportFactory`1.CreateExport()
at GitHub.Services.ExportFactoryProvider.GetView(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.Exports\Services\ExportFactoryProvider.cs:line 44
at GitHub.Controllers.UIController.CreateViewAndViewModel(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 193
at GitHub.Controllers.UIController.RunView(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 145
at GitHub.Controllers.UIController.<.ctor>b__9() in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 86
at Stateless.StateMachine`2.StateConfiguration.<>c__DisplayClass8.<OnEntry>b__7(Transition t)
at Stateless.StateMachine`2.StateConfiguration.<>c__DisplayClassb.<OnEntry>b__a(Transition t, Object[] args)
at Stateless.StateMachine`2.StateRepresentation.ExecuteEntryActions(Transition transition, Object[] entryArgs)
at Stateless.StateMachine`2.StateRepresentation.Enter(Transition transition, Object[] entryArgs)
at Stateless.StateMachine`2.InternalFire(TTrigger trigger, Object[] args)
at GitHub.Controllers.UIController.<SetupView>b__23(Boolean _) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 164
at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
at System.Reactive.ScheduledObserver`1.Run(Object state, Action`1 recurse)
at System.Reactive.Concurrency.Scheduler.<>c__DisplayClass50`1.<InvokeRec1>b__4d(TState state1)
at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState](IScheduler scheduler, Pair`2 pair)
at System.Reactive.Concurrency.ScheduledItem`2.InvokeCore()
at System.Reactive.Concurrency.CurrentThreadScheduler.Trampoline.Run(SchedulerQueue`1 queue)
at System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action)
at System.Reactive.Concurrency.LocalScheduler.Schedule[TState](TState state, Func`3 action)
at System.Reactive.Concurrency.Scheduler.Schedule(IScheduler scheduler, Action action)
at System.Reactive.Linq.QueryLanguage.<>c__DisplayClassd5`1.<ToAsync>b__d3()
at System.Reactive.Linq.QueryLanguage.Start[TSource](Func`1 function, IScheduler scheduler)
at System.Reactive.Linq.Observable.Start[TResult](Func`1 function, IScheduler scheduler)
at GitHub.Api.ApiClient.<>c__DisplayClass4.<GetOrCreateApplicationAuthenticationCode>b__2(TwoFactorAuthorizationException ex) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Api\ApiClient.cs:line 78
at Octokit.AuthorizationExtensions.<>c__DisplayClass7.<CreateAndDeleteExistingApplicationAuthorization>b__4(TwoFactorAuthorizationException ex) in c:\Users\shana\Documents\GitHub\VisualStudio\submodules\octokit.net\Octokit.Reactive\Helpers\AuthorizationExtensions.cs:line 118
at Octokit.AuthorizationExtensions.<>c__DisplayClass7.<CreateAndDeleteExistingApplicationAuthorization>b__5(TwoFactorAuthorizationException exception) in c:\Users\shana\Documents\GitHub\VisualStudio\submodules\octokit.net\Octokit.Reactive\Helpers\AuthorizationExtensions.cs:line 128
at System.Reactive.Linq.ObservableImpl.Catch`2._.OnError(Exception error) at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.RuntimePartLifecycleTracker.CreateValue()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.Create()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.MoveNext()
at Microsoft.VisualStudio.Composition.ExportProvider.PartLifecycleTracker.GetValueReadyToExpose()
at Microsoft.VisualStudio.Composition.RuntimeExportProviderFactory.RuntimeExportProvider.<>c__DisplayClass12_0.<CreateExportFactory>b__0()
at Microsoft.VisualStudio.Composition.ExportProvider.<>c__DisplayClass44_0.<CreateExportFactory>b__0()
at Microsoft.VisualStudio.Composition.DelegateServices.<>c__DisplayClass2_0`1.<As>b__0()
at System.ComponentModel.Composition.ExportFactory`1.CreateExport()
at GitHub.Services.ExportFactoryProvider.GetView(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.Exports\Services\ExportFactoryProvider.cs:line 44
at GitHub.Controllers.UIController.CreateViewAndViewModel(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 193
at GitHub.Controllers.UIController.RunView(UIViewType viewType) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 145
at GitHub.Controllers.UIController.<.ctor>b__9() in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 86
at Stateless.StateMachine`2.StateConfiguration.<>c__DisplayClass8.<OnEntry>b__7(Transition t)
at Stateless.StateMachine`2.StateConfiguration.<>c__DisplayClassb.<OnEntry>b__a(Transition t, Object[] args)
at Stateless.StateMachine`2.StateRepresentation.ExecuteEntryActions(Transition transition, Object[] entryArgs)
at Stateless.StateMachine`2.StateRepresentation.Enter(Transition transition, Object[] entryArgs)
at Stateless.StateMachine`2.InternalFire(TTrigger trigger, Object[] args)
at GitHub.Controllers.UIController.<SetupView>b__23(Boolean _) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Controllers\UIController.cs:line 164
at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
at System.Reactive.ScheduledObserver`1.Run(Object state, Action`1 recurse)
at System.Reactive.Concurrency.Scheduler.<>c__DisplayClass50`1.<InvokeRec1>b__4d(TState state1)
at System.Reactive.Concurrency.Scheduler.InvokeRec1[TState](IScheduler scheduler, Pair`2 pair)
at System.Reactive.Concurrency.ScheduledItem`2.InvokeCore()
at System.Reactive.Concurrency.CurrentThreadScheduler.Trampoline.Run(SchedulerQueue`1 queue)
at System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[TState](TState state, TimeSpan dueTime, Func`3 action)
at System.Reactive.Concurrency.LocalScheduler.Schedule[TState](TState state, Func`3 action)
at System.Reactive.Concurrency.Scheduler.Schedule(IScheduler scheduler, Action action)
at System.Reactive.Linq.QueryLanguage.<>c__DisplayClassd5`1.<ToAsync>b__d3()
at System.Reactive.Linq.QueryLanguage.Start[TSource](Func`1 function, IScheduler scheduler)
at System.Reactive.Linq.Observable.Start[TResult](Func`1 function, IScheduler scheduler)
at GitHub.Api.ApiClient.<>c__DisplayClass4.<GetOrCreateApplicationAuthenticationCode>b__2(TwoFactorAuthorizationException ex) in c:\Users\shana\Documents\GitHub\VisualStudio\src\GitHub.App\Api\ApiClient.cs:line 78
at Octokit.AuthorizationExtensions.<>c__DisplayClass7.<CreateAndDeleteExistingApplicationAuthorization>b__4(TwoFactorAuthorizationException ex) in c:\Users\shana\Documents\GitHub\VisualStudio\submodules\octokit.net\Octokit.Reactive\Helpers\AuthorizationExtensions.cs:line 118
at Octokit.AuthorizationExtensions.<>c__DisplayClass7.<CreateAndDeleteExistingApplicationAuthorization>b__5(TwoFactorAuthorizationException exception) in c:\Users\shana\Documents\GitHub\VisualStudio\submodules\octokit.net\Octokit.Reactive\Helpers\AuthorizationExtensions.cs:line 128
at System.Reactive.Linq.ObservableImpl.Catch`2._.OnError(Exception error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment