ContactPicker InvalidOperationException #1143
Unanswered
BarcodeResource
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using ProjectReunion 0.8.1 on a Desktop app. When using the ContactPicker, I am getting an InvalidOperationException. This is for a UWP app that we are testing to port to WinUI Desktop. Any help or guidance is appreciated. Thanks.
ContactStore contactStore = await ContactManager.RequestStoreAsync(ContactStoreAccessType.AllContactsReadOnly);
Windows.ApplicationModel.Contacts.ContactPicker page = new Windows.ApplicationModel.Contacts.ContactPicker();
page.SelectionMode = ContactSelectionMode.Contacts;
var contacts = await page.PickContactsAsync();
System.InvalidOperationException
HResult=0x80131509
Message=Exception of type 'System.InvalidOperationException' was thrown.
Source=WinRT.Runtime
StackTrace:
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Windows.ApplicationModel.Contacts.IContactPicker2.global::Windows.ApplicationModel.Contacts.IContactPicker2.PickContactsAsync()
at Windows.ApplicationModel.Contacts.ContactPicker.PickContactsAsync()
at App4.MainWindow.<myButton_Click>d__5.MoveNext() in C:\Users\james\source\repos\App4\App4\App4\MainWindow.xaml.cs:line 64
onecoreuap\shell\windows.system.launcher\lib\windows.system.launcher.cpp(1659)\Windows.System.Launcher.dll!18620262: (caller: 7A608038) Exception(1) tid(3ff4) 8000000E A method was called at an unexpected time.
Exception thrown at 0x760EB4B2 in App4.exe: Microsoft C++ exception: wil::ResultException at memory location 0x02F7AEE0.
Exception thrown at 0x760EB4B2 in App4.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\shell\windows.system.launcher\lib\windows.system.launcher.cpp(1676)\Windows.System.Launcher.dll!18620230: (caller: 7A608038) ReturnHr(1) tid(3ff4) 8000000E A method was called at an unexpected time.
Msg:[onecoreuap\shell\windows.system.launcher\lib\windows.system.launcher.cpp(1659)\Windows.System.Launcher.dll!18620262: (caller: 7A608038) Exception(1) tid(3ff4) 8000000E A method was called at an unexpected time.
]
Exception thrown: 'System.InvalidOperationException' in WinRT.Runtime.dll
Beta Was this translation helpful? Give feedback.
All reactions