'JSON' is undefined

纵然是瞬间 提交于 2019-12-01 08:33:53

Apparently when the WebBrowser control runs, it runs in in the version of IE installed on the computer, but it runs in IE7 compatibility mode. Trying to load the link you listed requires a more modern browser. As a matter of fact, the page you requested needs IE10 or higher.

You do need to change the browser emulation settings in the registry so that the WebBrowser control users a more modern IE feature set:

Internet Feature Controls

As you already said in your question, the two areas in the registry that need to be adjusted are:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

In each of those two locations, the process name of your applications is included with a DWORD value set indicating the level of compatibility. The specific values are found on the Internet Feature Controls help page. The names of the file is the name of you application "MyApplication1.exe", or if you're running from within Visual Studio, it is "MyApplication1.vshost.exe".

Because I have IE 11 installed, I set the browser emulation setting to 11001 and it worked for your linked webpage.

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