Skip to content

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

Open
@smohanty05

Description

@smohanty05

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions