Solution to chm files problem “This program cannot display the webpage”

This is an old problem that I have encountered when reading .chm files (Microsoft Compiled HTML Help File). For a long time I thought the file has broken during download or file transfer, but if I was putting the file in an archive (rar, zip) and opened it, it works. Outside the archive it gives this error:

This program cannot display the webpage

Most likely causes:

  • You are not connected to the Internet.
  • The website is encountering problems.
  • There might be a typing error in the address.

What you can try:

Check your Internet connection. Try visiting another website to make sure you are connected.

Retype the address.

This problem can be caused by a variety of issues, including:

  • Internet connectivity has been lost.
  • The website is temporarily unavailable.
  • The Domain Name Server (DNS) is not reachable.
  • The Domain Name Server (DNS) does not have a listing for the website’s domain.

or it shows a blank page.

In this case, the first thing what you should do is to verify the path to the .chm file and its name. If a folder or the file contains the # symbol like in these examples

  • folder name: F:\C# books
  • file name: Learn C#.chm

then the solution is to rename the folder or the file and to remove the # symbol.

Searching the Internet, I have found that this problem may also be generated by a security issue