C# webBrowser script error

后端 未结 6 1143
孤城傲影
孤城傲影 2021-01-02 15:08

I keep getting a script error when trying to load the page using webBrowser.Navigate(\"https://home.nest.com/\"). It will pull up fine from my normal internet

6条回答
  •  孤街浪徒
    2021-01-02 15:38

    The script errors happen all of the time in the integrated Internet Explorer WebBrowser control even when it's using version 11. Modern websites rely heavily on massive Javascript files and dynamic rendering. You can see that just by watching that page load in a regular browser. The control just can't cut it some of the times.

    You might want to try some alternative browser controls. There are no guarantees that it will work with any of them, but at least it's something to try.

    • Awesomium : Originally based on Chromium. I don't know if they still integrate Chromium changes or if they've gone in their own direction. It's free for personal use as well as commercial making less than $100k.
    • DotNetBrowser : Embed a Chromium-based WPF / WinForms component into your .NET application to display modern web pages built with HTML5, CSS3, JavaScript, Silverlight etc.
    • geckofx : An open-source component for embedding Mozilla Gecko (Firefox) in .NET applications.
    • Xilium.CefGlue : A .NET/Mono binding for The Chromium Embedded Framework (CEF) by Marshall A. Greenblatt.
    • BrowseEmAll : BrowseEmAll.Cef (Chrome), BrowseEmAll.Gecko (Firefox), BrowseEmAll Core API (Chrome,Firefox,IE - COMMERCIAL)

    There are probably others, but this should give you a start with some of the more popular active projects if you want to pursue this route.

提交回复
热议问题