ClickOnce将“.application”文件显示为XML [英] ClickOnce is displaying the '.application' file as XML

查看:265
本文介绍了ClickOnce将“.application”文件显示为XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个 ClickOnce 部署我的测试应用程序,我正在尝试运行它在我的Windows XP SP2测试盒上。当我点击Visual Studio 2008创建的安装按钮时,我所得到的是我的浏览器中显示的清单文件,它不会产生安装。

I created a ClickOnce deployment of my test application, and I am trying to run it on my Windows XP SP2 test box. When I click on the install button that Visual Studio 2008 creates, all I get is the manifest file displayed in my browser and it doesn't spawn the install.

如果我根据 Internet Explorer 7 测试框运行安装,一切都可以正常运行。

If I run the install against an Internet Explorer 7 test box, everything works OK.

如何解决这个问题?

推荐答案

在MSDN文章中在ClickOnce部署中排除特定错误 解决你的问题。

The first issue in the MSDN article Troubleshooting Specific Errors in ClickOnce Deployments addresses your issue.

Guy星巴克是对的,一个问题可能是2.0框架没有安装或损坏。但是,我经常遇到的问题是在 IIS 中没有正确设置MIME类型for .application 文件。确保IIS设置为将 .application 文件与应用程序/ x-ms应用程序内容类型相关联。

Guy Starbuck is right, one issue could be the 2.0 Framework is not installed or corrupted. However, the issue I run into more often is not having the MIME type set up correctly in IIS for .application files. Make sure that IIS is set up to associate .application files with the application/x-ms-application content type.

这篇关于ClickOnce将“.application”文件显示为XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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