I'm trying to integrate a browser in a empty Windows Form but in some pages this error start poping: "An error has occurred in the script on this page" and the page gets corrupted.
As you can see the top image is the error and the bottom image is the corrupted page. The last one was supposedly should be www.g2a.com
The proyect was generated with this configuration: Visual Studio 2019 -> Windows Forms Application (.NET Framework). This is my code, it runs.
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace bot3._0
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
webBrowser1.Navigate("http://www.google.es");
}
}
}
Edit: ScriptErrorsSuppressed = true dont work, it just suppress the errors but the page still corrupted.