I am trying to use a webbrowser control in a winforms app. In my app, when I try to navigate to places that work fine in IE or Chrome, I get a "Script Error" window stating that "An error has ocurred in the script on this page." with "Error: Object doesn't support this property or method." Yet, I can still use IE to get to the page without issue.
What am I missing?
The script error is less important to me than the fact that it is behaving differently in my app than it does in a web browser. My question is this:
Is it possible to embed a web browser in a .Net application that will behave exactly like a stand-alone web browser? How?
For posterity: I know this isn't a proper fix, but you can actually open up Internet Explorer -> Tools -> Internet Options -> Advanced then look under Browsing for the options Disable script debugging (Internet Explorer & Other). Deselect those and you will solve the problem.
Another option is like this:
webBrowser1.ScriptErrorsSuppressed = true;
IE probably has the error messages turned off. There is likely a script error that needs resolved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With