c# - 网络CHM文件

标签 c# winforms visual-studio-2012 intranet chm

所以我已经了解了网络(内联网)上的 CHM 文件以及如何在 Windows 上查看它们。有用。 问题是 Visual Studio 仍然无法查看它们。

Help.ShowHelp(ParentForm, @"\\ServerName\data\DynamicHelp\HelpFIle.chm", HelpNavigator.Topic, @"mk:@MSITStore:\\ServerName\data\\DynamicHelp\HelpFile.chm::/TopicName.htm");

结果是帮助文件为空。 主题和副主题都出现在内容列表中,但其中没有任何内容。

如果有人知道如何解决此问题,请与我分享您的专业知识。

最佳答案

您需要更改注册表设置以允许 .chm 文件查看器访问网络驱动器上的内容。我通过应用这个 .reg 文件来做到这一点:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\HTMLHelp\1.x\ItssRestrictions]
"MaxAllowedZone"=dword:00000001

请注意,我在注册表的 32 位和 64 位 View 中应用了该设置。

我知道我通过硬编码 Wow6432Node 打破了黄金法则,但对于我的需求,在我的特定网络上,这就足够了。

关于c# - 网络CHM文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21234716/

相关文章:

c++ - Visual Studio 2012 : “Apply Code Changes” is disabled C++

visual-studio-2012 - Visual Studio : How to find all calls to function

c# - 在 NHibernate 中动态引用属性?

c# - 如何修复 'Remove property setter' 构建错误?

c# - 如何遍历 Treeview 节点的所有层?

c# - visual Studio 2015 中是否有 c# windows 窗体应用程序?

c# - 将textBox1的内容替换为textBox2的内容

c# - 为什么我需要任何 Saga 存储?

c# - 获取对象的结果 View 或动态 View

c# - 为什么 c# 中的 lambda 似乎以不同方式处理 bool 返回值?