Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4041

JS Runtime Cancellation Token timeout error in ASP.NET core

$
0
0

I'm building an ASP.NET core application with ef core. When I try to show a Popup that doesn't have a timeout with this command:

await _jsRuntime.InvokeAsync<Task>("showVersionUpdate", version, System.Threading.CancellationToken.None);

I get the following error:

System.NotSupportedException: 'Serialization and deserialization of 'System.IntPtr' instances is not supported. Path: $.WaitHandle.Handle. NotSupportedException: Serialization and deserialization of 'System.IntPtr' instances is not supported. '

Any help is appreciated!

PS: I've tried removing the cancellation token completely but it still timesout after a couple of seconds. The showVersionUpdate is a sweetalert2 popup


Viewing all articles
Browse latest Browse all 4041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>