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

Await js.InvokeVoidAsync("openWindowWithContent", htmlContent) throws exception

$
0
0

I'm using blazor server side and core.On my razor page I have this code in the "code" section.

enter image description here

I have a code behind file that contains:

enter image description here

I have a code behind file that contains:

I use this same code in other projects and they run without fail. When I call print in this application, I get this exception:

enter image description here

Anyone have a suggestion as to what this issue might be. The only difference between this app and the other apps that run it is the htmlcontent. I checked for malformed html by replace the string with the htmlcontent from another working application, but it still fails.

Googled for a answer but didn't find anything.

I replaced the HTML content being sent with HTML content from a working application and it still failed.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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