Forum Discussion
Hi Steve
Many thanks for providing the code. My app is still working but if I ever need to get new tokens or install the app on another machine I'll run into issues and hence very interested in your solution.
I have replaced the old GetAuthorizationCode code with yours, however on my machine it hangs on the "await webView2.EnsureCoreWebView2Async(null);".
I'm guessing it is an environmental issue but if you or anyone else has any suggestion sit would be greatly appreciated.
Thanks
Not sure. Build | Clean solution and/or nuking the bin folder is always my start point for weird issues. You could check this out:
Failing that, see this post, showing you don't actually need the WebView2 update just yet.
https://community.myob.com/discussions/accountrightapiquestions/c-webbrowser---webview2-solution/877141/replies/877495