Thanks for using Microsoft Q&A and thanks for reaching out to us.
Have you tried the below solution. If not, try it and see if it helps.
- So go to your project setting for your executable. Select "Debug" options. Select "Start External Program". Browse to and select Debug\YourProgram.exe (NOT YourProgram.vshost.exe). Save, recompile, and hit F5.
- Everything should work as per usual now, and Visual Studio even attaches to the process for you automatically.
you can try using ScriptErrorSuppressed to get rid of those errors.
webBrowser1.ScriptErrorsSuppressed = true;
Also Please go through this blog post for more reference :
I hope this information helps.
Please feel free to reach back if you have any further questions regarding this matter.