© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
ZedDevStuff

WebView2 PostWebMessageAs methods broken. Any alternatives?

I'm working on a personal project and was using my own messaging system (which is a huge pain because of json not working the way i want sometimes) and after my 4th breakdown today, i decided to see if WebView2 supported that directly and indeed, it does. I was already partially using it on the Javascript side but the hard part was the C#->Js. Now, when i call PostWebMessageAsString() PostWebMessageAsJson(), i get an error in the web console (see image). Googled it, found 1 issue and 1 stackoverflow thread which both lead nowhere (as in no answers) and now i already dread having to continue my own thing. does anyone here happen to know if there is a way to fix this?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WinUI3 WebView2
C#CC# / help
3y ago
[WPF] Monaco & WebView2
C#CC# / help
3y ago
Webview2 missing from toolbox
C#CC# / help
11mo ago
✅ command methods not throwing any errors
C#CC# / help
3y ago