下载到不同的计算机时,生成的chm文件不再有效 [英] Generated chm file no longer works when downloaded to different machine

查看:76
本文介绍了下载到不同的计算机时,生成的chm文件不再有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

按照我在MSDN博客上找到的说明编写一个批处理文件,以自动执行从我创建的库dll和xml注释文件生成编译的帮助文件的步骤。 >
该过程完成没有问题,并生成一个.chm文件,在我之后打开它时工作得很好。但是,我上传到我的网站并将其下载到一个同事机器上,并且chm文件无法正确打开。它会毫无问题地显示命名空间和类结构索引,但是内容不会显示。

它总是会显示标准的wed页面,找不到样式错误页面。我复制了以下文字:

此程序无法显示网页

最有可能原因:
您未连接到Internet。
该网站遇到了问题。
地址中可能存在输入错误。

您可以尝试:
检查您的Internet连接。尝试访问其他网站以确保您已连接。

重新输入地址。

返回上一页。

更多信息
此问题可能由多种问题引起,包括:

Internet连接已丢失。
该网站暂时无法使用。
无法访问域名服务器(DNS)。
域名服务器(DNS)没有该网站域名的列表。


我不确定为什么会出现这种情况,因为评论的内容应该直接编译到chm文件所以不需要连接到任何外部显示信息。

有没有人有这个问题或者有任何建议我可以尝试?

非常感谢。
<编辑:

已将其缩小到仅与一台机器一起出现的问题。已经在其他计算机上下载并打开了该文件而没有问题。所以它似乎是一个同事的机器特有的东西。

解决方案



可能是Windows安全阻止了内容:


  1. 对-mouse单击该文件并选择属性
  2. 常规标签上按取消阻止按钮。
  3. 单击文件属性对话框中的确定

Hi all,

Followed the instructions I found on an MSDN blog to write a batch file to automate the steps for generating a compiled help file form a library dll and xml comments file I am creating.

The process completes without problems and generates a .chm file that works just fine when I open it afterwards. However, I uploaded to my site and downloaded it onto a co-workers machine and the chm file would not open correctly. It would display the namespace and class structure index without issue, however the content would not display.

It would always display the standard wed page cannot be found style error page. I have copied the text below:

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.

Go back to the previous page.

More information
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.


I am unsure as to why this would occur as the content of the comments should be compiled directly into the chm file so shouldn't need to connect to anything external to display the information.

Has anyone had this issue or perhaps have any suggestions I could try?

Much appreciated.

EDIT:

Have narrowed it down to an issue only present with the one machine.  Have downloaded and opened the file on other machines without issue.  So it would appear to be something specific to the one co-worker's machine.

解决方案

Hi,

 

It may be that Windows security is blocking the contents:

  1. Right-mouse click the file and select Properties.
  2. On the General tab press the Unblock button.
  3. Click OK on the file properties dialog.


这篇关于下载到不同的计算机时,生成的chm文件不再有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆