Closed neoxeo closed 8 months ago
@generalloki
Version : 3298e9d8f0776af1ce72f5de32e104fa6c589640
This issue seems not to be fixed for me :
// webbrowser sample
private void loadWebBrowser()
{
// webBrowser1 load local html file
string html = "<html><body><h1>Sample HTML File</h1><p>First Sample paragraph.</p><p>Second Sample paragraph.</p></body></html>";
webBrowser1.NavigateToString(html);
}
@neoxeo, Could you please attach the full project with the problem? Also copy/paste error text so I could translate it to English? I have checked the problem in ControlsTest project (test action "Navigate To String") and it works fine. Also is it IE or Edge?
@generalloki
Sorry, yes.
Here is error in english :
System.AccessViolationException : 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Here is a testproject to reproduce error : testWebBrowser.zip
I run project from testWebBrowser.zip and it's fine. Used cmd: dotnet run --framework net8.0
So something could be with your Edge installation. Try to use IE backend. This call sets desired backend version WebBrowser.SetBackend(WebBrowserBackend value)
@generalloki
I will test this quickly. Strange thing is that navigate url works fine
@generalloki
After clean .nuget cache and generate new nuget packages with latest version, all works fine with Edge and IE.
I don't know what is the reason of error but now it is solve. Sorry.
@generalloki
Version : 0f81a342224beaa98e73088392fab971b763c9f6
Error :