Category - Windows
Contents Under Construction


Contents:
------------------------------------------------------------------------------------------------------------------------------------------
Cannot View CHM Files Over LAN or Internet

------------------------------------------------------------------------------------------------------------------------------------------


Δ
Cannot View CHM Files Over LAN or Internet
Written by Eddie Jackson on Saturday, 09/14/2009 xx:xx:00 PM [filed under Windows]
------------------------------------------------------------------------------------------------------------------------------------

 
You're surfing along the internet and happened to come across a chm microsoft help file.  You go to view it and it seems like your CHMs are all corrupted. They show a "The page cannot be displayed" or "Action canceled" error in the right-hand pane of the CHM viewer. There are several possible reasons why your
CHM e-books and documentation files are unreadable. What Microsoft says about this: Link

So, here is what the error looks like:

chmerror1



Here are the solutions and screenshots I have compiled:

The CHM viewer component is not properly registered on your PC

The system file \system32\hhctrl.ocx may get missing, corrupted, or unregistered.
 

Δ Solution: Run "regsvr32 hhctrl.ocx" command from the command line to register the library in the system. 

registerfile



Your CHM files are stored in the folder with '#' (hash) character in the path

Many C# developers discovered that their documentation and e-books in CHM format cannot be read because they were storing their CHM files in the directories like 'C:\E-books\C#\'
The hash character signifies an anchor in HTML so the CHM viewer fails to resolve the path properly and to retrieve the content.

Δ Solution: Remove the '#' (hash) character from the directory name. Also avoid using '?', '&', and '+' characters in directory names.

poundsign



A security update for Windows XP® may block access to CHM files
Windows XP® security update blocks active content in CHM files to protect your system security. Additional information is available here.

Δ Solution: Run Windows Explorer, right-click on the CHM file, and select Properties from the popup menu. Click on the Unblock button immediately below the Advanced button on the General page. Click Apply to show the content. Once the CHM file has been unblocked, the Unblock button disappears.

unblock




The CHM file is in the restricted Internet zone
When a CHM file that you are trying to access is stored remotely, e.g. on the network drive or on a remote server, you may also get in trouble. If the associated security zone is restricted, then CHM files won't be displayed as well.

 

Δ Solution: Modify the ItssRestrictions registry entry to enable a specific security zone.
Follow these steps:
 
1. Run 'regedit' command from the command line.

2. Locate and then click the following subkey: 
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions
   Note: If this registry subkey does not exist, then create it.

3. Right-click the ItssRestrictions subkey, point to New, and then click DWORD Value.
 
4. Type MaxAllowedZone, and then press ENTER.
 
5. Right-click the MaxAllowedZone value, and then click Modify.
 
6. In the Value data box, type a number from 0 and 4, and then click OK.
    The values settings are
    0 = My Computer
    1 = Local Intranet Zone
    2 = Trusted sites Zone
    3 = Internet Zone
    4 = Restricted Sites Zone

For most CHM files, the value of 1 should be enough to allow use without opening up access from/to remote CHM files in email/internet locations.

7. Quit Registry Editor.

Warning! Enable only those security zones that you trust. Do not enable security zones about which you are not sure.  

chmfix

 

------------------------------------------------------------------------------------------------------------------------------------
Δ (doc
) * (pdf) * email
----------------------------------------------------------------------------------------------------------------------------------- 

































 


..About

..I'm a Computer  
..Systems Engineer


..L
iving and loving life

........................................


..Author
....




..Categories

....< AD
....< Exchange 
....< SQL
....< Windows
....< VBScript
....< Shell
....
<
HTML
....< HTA
....< PowerShell
....< Reporting
....< Healthcare
....< Networking
....< General



..
Archives


....< October 2009
....<
September 2009

....
<
August 2009
....< July 2009