Script Error in webBrowser control WPF

僤鯓⒐⒋嵵緔 提交于 2019-12-01 22:10:54

I faced this problem too. I need to create browser application which the web has lot of Jquery, JSON etc and webbrowser control does't work as expected (I'm using Windows 10 and Visual Studio 2015)

As solution, I use cefsharp.github.io which allow me to embed a full-featured standards-complaint web browser into C# or VB.NET project solution without hacking windows registry key. It based on Chromium Embedded Framework. It work like a charm!

Just grab nuget packages and create ChromiumWebBrowser class and you are ready to use it.

Giangregorio

You have to change your WebBrowser rendering engine, by default it uses the oldest one.

In this link Microsoft describes how you can do it: http://msdn.microsoft.com/en-us/library/ie/ee330730%28v=vs.85%29.aspx

And you can follow this good answer too. Will the IE9 WebBrowser Control Support all of IE9's features, including SVG?

Pay attention that if you are running a 32 bit app on a 64bit system you must set this key instead

[HKLM\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]

I tried the site that fails in your screenshot and works well with this registry change from a WebBrowser.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!