Wildlife SOS
Wildlife SOS
I've checked that I'm using the latest Canary version and I think that I am. I've also tried to use the NuGet WebView2 1.0.1083-prerelease and that has the same problem
Using the debugger the cookie shows up like this 
1) WebView21.CoreWebView2.Environment.BrowserVersionString is 98.0.1090.0 canary 2) I have looked at that web page. I do not have the WebView evergreen runtime installed. According to https://www.nuget.org/packages/Microsoft.Web.WebView2 the latest prerelease is 1.0.1083-prerelease...
I've been experimenting calling WebView21.CoreWebView2.ExecuteScriptAsync("document.documentElement.outerHTML;") in timers and using pool tasks Task.Run(Of String)(Function() WebView21.CoreWebView2.ExecuteScriptAsync("document.documentElement.outerHTML;")) In pool tasks I always get errors like System.InvalidOperationException HResult=0x80131509 Message=CoreWebView2 can only be accessed from...
I get the same error if I access the cookies straightaway  I don't understand what you mean by trying to use a dispatcher; could you elaborate?
Thanks for your help so far Nic. I did explore the dispatcher option. I've changed my solution slightly to use ` WebView21.BeginInvoke(Sub() m_getCookiesTask = WebView2Helper.GetCookies(WebView21, WebView21.Source.AbsoluteUri)) WebView21.BeginInvoke(Sub() m_htmlSourceTask = WebView2Helper.GetHtmlSource(WebView21))...
Yes, the helper functions that I call use await already ` Public Shared Async Function GetCookies(ByVal wv As Microsoft.Web.WebView2.WinForms.WebView2, ByVal uri As String) As Task(Of List(Of CoreWebView2Cookie)) Return Await wv.CoreWebView2.CookieManager.GetCookiesAsync(uri)...
Hi Nic, Is there a bug reference number?
Hi @champnic Do you have any idea when this may be fixed? This is a show stopper for me now as I need those cookies for my application to log...