通过 IIS 6 使用 ClickOnce 的 VSTO 解决方案无法下载清单
我有一个使用 ClickOnce 发布的 Word 2007 Office 解决方案。当我将其发布到本地目录时,我可以安装 .vsto 文件并且一切正常。但是,当我将其发布到我们的网络服务器时,我无法安装它。我得到的错误是:
下载 file:///C:/DOCUME~1/Dave/LOCALS~1/Temp/Application Files/MyApp_1_0_0_0/MyApp.dll.manifest 失败。
我一天的大部分时间都在谷歌搜索,并且已经尝试了以下操作:
- 将正确的 MIME 类型添加到 IIS 6 配置(如所述此处 和 此处)。
- 创建测试证书,将其导入到我受信任的根权限中,并用它签署应用程序。
- 将解决方案发布到网络共享并尝试从那里安装。效果很好。
- 尝试直接从 Web URL 访问 MyApp.dll.manifest 文件。浏览器能够很好地找到该文件。
我缺少什么?谢谢。
I have an Office solution for Word 2007 that I publish using ClickOnce. When I publish it to a local directory, I can install the .vsto file and everything works. When I publish it to our web server, though, I cannot install it. The error I get is:
Downloading file:///C:/DOCUME~1/Dave/LOCALS~1/Temp/Application Files/MyApp_1_0_0_0/MyApp.dll.manifest did not succeed.
I have been Googling for most of the day, and have already tried the following:
- Added the correct MIME types to IIS 6 config (as described here and here on MSDN).
- Created a test certificate, imported it into my trusted root authorities, and signed the app with it.
- Published the solution to a network share and tried installing from there. It worked fine.
- Tried accessing the MyApp.dll.manifest file directly from the web URL. The browser is able to find the file just fine.
What am I missing? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保最终用户 PC 上安装了 Windows Installer 3.1。如果不是,您可能需要将其添加为应用程序的先决条件。
此外,您可能需要检查是否从 Windows“添加/删除程序”屏幕安装了该应用程序。如果它在列表中,您可能需要先卸载该应用程序。我知道,您可能会想“但是该应用程序尚未安装。”
相当多的应用程序是通过 ClickOnce 发布的。 ClickOnce 在大多数情况下都工作得很好,但时不时地,我会看到用户在尝试最初安装该应用程序时遇到与您类似的问题。最佳解决方案通常是卸载所有必备组件,重新启动,手动重新安装必备组件(不是从 ClickOnce setup.exe 文件安装),然后启动应用程序。
其中一些步骤可能不是必需的,但几乎每次都能解决问题。
Make sure that Windows Installer 3.1 is installed on the end-users PC. If it's not, you may want to add it as a prerequisite to your application.
Also, you may want to check and see if the application is installed from the Windows Add/Remove Programs screen. If it is in the list, you may need to uninstall the application, first. I know, you're probably thinking 'But the application hasn't been installed yet.'
Quite a few application that are published via ClickOnce. ClickOnce works great most of the time, but every now and then I see users who run into hiccups similar to yours when they try to initially install the application. The best solution is to usually uninstall all prerequisites, reboot, manually re-install the prerequisites (not from the ClickOnce setup.exe file) and then launch the application.
Some of those steps may not be necessary but it tends to fix the problem nearly every single time.