MicrosoftEdge / MicrosoftEdge/WebView2Feedback

NavigateToString with a very large string shows error "Value does not fall within the expected range"

Open
#1,355 43 comments 4 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am using WPF Webview2 control. I saw with some specific large data NavigateToString method throws below error:
System.ArgumentException
HResult=0x80070057
Message=Value does not fall within the expected range.
Source=Microsoft.Web.WebView2.Core
StackTrace:
at Microsoft.Web.WebView2.Core.Raw.ICoreWebView2.NavigateToString(String htmlContent)
at Microsoft.Web.WebView2.Core.CoreWebView2.NavigateToString(String htmlContent)
at WebView2Sample.MainWindow.<Window_Loaded>d__1.MoveNext()

Note: The issue is not seen using Navigate method or setting Source property.

Is this a known issue? NavigateToString has any limitations?

AB#33629225

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.