Opening a CHM file produces: “navigation to the webpage was canceled”

前端 未结 9 1094
有刺的猬
有刺的猬 2020-12-04 16:26

I am trying to open a .chm file.

I downloaded the source, extracted it, and double clicked on Waffle.chm and clicked \"Open\" but no matter what element

相关标签:
9条回答
  • 2020-12-04 17:13

    I fixed this programmatically in my software, using C++ Builder.

    Before I assign the CHM help file, Application->HelpFile = HelpFileName, I check to see if it contains the "Zone.Identifier" stream, and when it does, I simply remove it.

    String ZIStream(HelpFileName + ":Zone.Identifier") ;
    
    if (FileExists(ZIStream))
        { DeleteFile(ZIStream) ; }
    
    0 讨论(0)
  • 2020-12-04 17:15

    Win 8 x64:

    just move it to another folder or rename your folder (in my case: my folder was "c#"). avoid to use symbol on folder name. name it with letter.

    done.

    0 讨论(0)
  • 2020-12-04 17:18

    Summary

    Microsoft Security Updates 896358 & 840315 block display of CHM file contents when opened from a network drive (or a UNC path). This is Windows' attempt to stop attack vectors for viruses/malware from infecting your computer and has blocked out the .chm file that draw data over the "InfoTech" protocol, which this chm file uses.

    Microsoft's summary of the problem: http://support.microsoft.com/kb/896054

    Solutions

    1. If you are using Windows Server 2008, Windows 7, windows has created a quick fix. Right click the chm file, and you will get the "yourfile.chm Properties" dialog box, at the bottom, a button called "Unblock" appears. Click Unblock and press OK, and try to open the chm file again, it works correctly. This option is not available for earlier versions of Windows before WindowsXP (SP3).

    2. Solve the problem by moving your chm file OFF the network drive. You may be unaware you are using a network drive, double check now: Right click your .chm file, click properties and look at the "location" field. If it starts with two backslashes like this: \\epicserver\blah\, then you are using a networked drive. So to fix it, Copy the chm file, and paste it into a local drive, like C:\ or E:. Then try to reopen the chm file, windows does not freak out.

    3. Last resort, if you can't copy/move the file off the networked drive. If you must open it where it sits, and you are using a lesser version of windows like XP, Vista, ME or other, you will have to manually tell Windows not to freak out over this .chm file. HHReg (HTML Help Registration Utility) Utility Automates this Task. Basically you download the HHReg utility, load your .chm file, press OK, and it will create the necessary registry keys to tell Windows not to block it. For more info: http://www.winhelponline.com/blog/fix-cannot-view-chm-files-network-xp-2003-vista/

    Windows 8 or 10? --> Upgrade to Windows XP.

    0 讨论(0)
提交回复
热议问题