When am work on webBrowser control using wpf Getting error like "script error" even i pasted screen shot here and even some jquery UI and css not working
-
1We'll need more information on this one. – m02ph3u5 Sep 01 '15 at 12:55
-
Xaml:
-
Had you tried my solution? – Giangregorio Sep 04 '15 at 17:47
-
1Possible duplicate of [WPF WebBrowser control - how to supress script errors?](http://stackoverflow.com/questions/6138199/wpf-webbrowser-control-how-to-supress-script-errors) – Jack Nov 14 '16 at 21:49
2 Answers
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.

- 312
- 1
- 2
- 14
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.

- 1
- 1

- 1,482
- 2
- 11
- 12