question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.NET Core 2.0 Console App: NotImplementedException: The method or operation is not implemented.

See original GitHub issue

Seems like PublicClientApplication does not support .NET Core 2.0 Console App. Why does it call UI components?

   at Microsoft.Identity.Client.Internal.UI.WebUIFactory.CreateAuthenticationDialog(UIParent parent, RequestContext requestContext)
   at Microsoft.Identity.Client.PublicClientApplication.<AcquireTokenForLoginHintCommonAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Identity.Client.PublicClientApplication.<AcquireTokenAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.HotPot.Tool.Exchange.AuthenticationHelper.<GetTokenForUserAsync>d__7.MoveNext() in D:\WorkSpace\personal\HotPot\src\dev\Tool\Exchange\AuthenticationHelper.cs:line 73
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.HotPot.Tool.Exchange.AuthenticationHelper.<>c.<<GetAuthenticatedClient>b__6_0>d.MoveNext() in D:\WorkSpace\personal\HotPot\src\dev\Tool\Exchange\AuthenticationHelper.cs:line 40
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.BaseRequest.<SendRequestAsync>d__36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.BaseRequest.<SendAsync>d__32`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Graph.MailFolderMessagesCollectionRequest.<GetAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Microsoft.HotPot.Tool.Exchange.ExchangeClient.<>c__DisplayClass0_0.<<GetCurrentUserFolders>b__0>d.MoveNext() in D:\WorkSpace\personal\HotPot\src\dev\Tool\Exchange\ExchangeClient.cs:line 18

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mazong1123commented, Jun 7, 2018

@jennyf19 Thanks I’ll give it a try.

0reactions
bgavrilMScommented, Aug 23, 2018

Closing, please let us know if there are any other questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NotImplementedException Class (System)
The NotImplementedException exception indicates that the method or property that you are attempting to invoke has no implementation and therefore provides no ...
Read more >
c# - The method or operation is not implemented
OP: If I will remove the throw new NotImplementedException(); and will insert, for example, MessageBox.Show("Test");, every time I will open ...
Read more >
The method or operation is not implemented. - YouTube
stg # dotnet System. NotImplementedException : 'The method or operation is not implemented.'
Read more >
How do I solve the method is not implemented?
The idea is that the "not implemented exception" reminds you that you haven't written the code yet and makes it easy to locate...
Read more >
C# NotImplementedException
The NotImplementedException indicates in a clear way that the functionality being requested was simply not implemented. Example.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found