How to Fix an MSHTML.DLL Error
The MSHTML.DLL file allows the Microsoft Internet Explorer Web browser to read and display HTML Web pages. It is a Dynamic Link Library file directly related to how the browser processes HTML files, which make up the vast majority of Web pages. An error in the MSHTML.DLL file may cause the browser to quit unexpectedly when rendering HTML pages, though pages written in other languages are rendered properly. If the MSHTML.DLL file has become corrupted, then there are several steps the user can take to restore browser functionality.
Reset Internet Explorer settings by opening the program, clicking the "Tools" menu and clicking "Internet Options." Click the "Advanced" tab and then click "Reset" in the "Reset Internet Explorer Settings" window to confirm.
Download and install the latest version of Internet Explorer from the Microsoft website. If you're running an outdated version of the browser, upgrading may solve the the MSHTML.DLL error by replacing the file. When finished installing, restart your computer, then open the browser and navigate to an HTML page to test.
Install the latest service pack upgrade for your version of the Windows operating system. Go to the Microsoft Update website and choose "Express Install." Choose to install the latest updates for your computer, then restart.
Run the System File Checker program. This built-in utility checks important system files and automatically replaces missing or corrupted files. Click the "Start" menu, then choose "Run." In the text area, type "sfc /scannow" and press the "Enter" key. If any files are found to be missing or corrupted, you'll need to insert your Windows disc into your optical drive so the files can be replaced. Restart your computer once the program has completed the check.
Reset the TCP/IP protocol settings on your computer. Click the "Start" menu and choose "Run." Type in "cmd" to open the command prompt window. Type in "netsh int ip reset resetlog.txt" and press the "Enter" key. This will rewrite two registry entries that are used by the TCP/IP Internet protocol, which may solve the DLL error. Restart the computer.
Download and install a registry cleaner that checks the Windows registry for errors and fixes or deletes corrupted entries. Run the registry cleaner to check for errors, opting to fix any that are detected, and then restart the computer.
Test the result of any or all of these steps by opening Internet Explorer and browsing to any Web page with the file extension ".htm" or ".html". If the program renders the pages without error, the MSHTML.DLL file has been successfully fixed or replaced.