下载所需文件时发生错误

发布于 2024-09-29 13:41:41 字数 689 浏览 3 评论 0原文

我不确定这是否是正确的论坛,因为我不知道是什么导致了这个问题。我有一个已编译到安装项目中的 WPF 应用程序。构建安装项目后,有两个文件:setup.exe 和 [程序名称].msi。我将这两个文件放在 ASP.NET 网站的同一目录中,通过 IIS 7.5 提供服务。大约一周以来一切都工作正常,直到我开始收到错误:

“下载时发生错误 所需文件。您可以重试 下载文件或取消安装。”

当我单击网站上的 setup.exe 文件链接时,就会发生这种情况。看到此错误后,会出现一个标有“详细信息”的选项卡,我可以单击该选项卡来显示消息:

“尝试下载时发生错误 '[.msi 文件的网站 URL]'。看 安装日志文件位于 'C:\Users[用户名]\AppData\Local\Temp[一些 字母数字 序列].tmp\install.log' 了解更多 信息。”

我查看了这个文件,但它只是重申下载 .msi 文件时出现问题。任何人都可以给我一些建议吗?我真的对此感到困惑,不知道该去哪里......

很多感谢您的帮助!

安德鲁

编辑:这似乎是我正在下载该程序的计算机的问题,我尝试在另一台计算机上下载并安装该程序,显然,我必须进行一些更改。我的计算机上的设置会导致此问题,尽管我不确定那是什么......

I'm not sure if this is the right forum or not, since I have no idea what's causing this problem. I have a WPF application that was compiled into a setup project. After building the setup project, there are two files: setup.exe and [Program Name].msi. I put both files in the same directory in an ASP.NET website, served via IIS 7.5. Everything was working fine for about a week, until I started getting the error:

"An error occured while downloading a
required file. You may retry
downloading the file or cancel setup."

This happens when I click on a link on my website for the setup.exe file. After seeing this error, there's a tab labeled "Details" which I can click to display the message:

"An error occurred trying to download
'[website url for the .msi file]'. See
the setup log file located at
'C:\Users[username]\AppData\Local\Temp[some
alphanumeric
sequence].tmp\install.log' for more
information."

I looked at this file, but it just restates that there was a problem downloading the .msi file. Can anyone offer me some suggestions? I'm really stumped on this, and have no idea where to go...

Many thanks for the help!

Andrew

EDIT: This appears to be a problem with the computer that I'm downloading the program to. I tried downloading and installing the program on a different computer, and everything worked fine. Apparently, I must have changed some setting on my computer to cause this, although I'm not sure what that is...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

朦胧时间 2024-10-06 13:41:41

那么您想直接下载这些文件吗?服务器是否可能阻止下载 .msi 文件类型?下载是如何进行的?是用户发起的吗?

So you're trying to download these files directly? Could the server be preventing the download of the .msi file type? How is the download taking place? Is it user initiated?

烟织青萝梦 2024-10-06 13:41:41

今天早上我遇到了同样的问题,我终于发现它是由 IIS 中的以下设置之一(或两者)引起的:

  1. 压缩:我为静态和动态文件启用了压缩
  2. 输出缓存:我启用了缓存并启用启用内核缓存

我清除了上述所有复选框,之后 setup.exe 毫无问题地下载了 MSI!

I was experiencing the same issue this morning and I finally figured out that it caused by either one (or both) of the following settings in IIS:

  1. Compression: I had compression enabled for both static and dynamic files
  2. Output Caching: I had bit Enable cache and Enable Kernel Cache enabled

I cleared all of the above check boxes and after that the setup.exe downloaded the MSI without a problem!

魄砕の薆 2024-10-06 13:41:41

您的连接已中断,只需尝试您键入的预览命令并检查您的连接

You connection was interrupted just try the preview command you type and also check your connection

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文