none
.net framework WebBrowser crashes when trying to print RRS feed

  • Question

  • I'm posting here on recommendation of the support engineer I've been in contact with at

    [link removed]

    Developer Community Visual studio. I am unable to post links with my account to it. it has an id of 642834

    On some computers I can with a very simple .net application cause a silent crash of the whole application by attempting to print using the WebBrowser component. On those computers I get the same behaviour when attempting to print using Internet Explorer.

    In a simple application where I've dragged out a button and a WebBrowser in the Visual Studio designer I add the following in the code behind

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            webBrowser1.Navigate("www.google.com");
        }
    
        private void Button1_Click(object sender, EventArgs e)
        {
            webBrowser1.ShowPrintDialog();
        }
    }

    with the button click event being bound to Button1_Click of course.

    This causes a crash. Looking in the Event Viewer I see the following message at the same time of the crash.

    Faulting application name: WindowsFormsApp1.exe, version: 1.0.0.0, time stamp: 0xaf8b1ae6
    Faulting module name: MSHTML.dll, version: 11.0.17134.829, time stamp: 0x8429479d
    Exception code: 0x4000001f
    Fault offset: 0x00d65391
    Faulting process id: 0x4c98
    Faulting application start time: 0x01d5388ff4e51d42
    Faulting application path: C:\Users\perhyy\source\repos\WindowsFormsApp4\WindowsFormsApp1\bin\Debug\WindowsFormsApp1.exe
    Faulting module path: C:\WINDOWS\SYSTEM32\MSHTML.dll
    Report Id: 0f938d7d-0d7f-4234-895f-055c49819967
    Faulting package full name: 
    Faulting package-relative application ID: 

    I checked the IE version on two different computers where this crash happens.

    Windows 10

    version 11.950.17134.0

    Update Version 11.0.140 (KB4511872)

    Windows 7

    11.0.9600.19431
    Update version 11.0.140

    Thursday, September 5, 2019 7:27 AM