问题
My ClickOnce deployment used to work perfectly, but it stopped working in Internet Explorer 9. It only displays the Desktop.application XML file. It still works in Google Chrome, etc.
How can this problem be fixed?
回答1:
Well, usually it works fine. However, depending on settings and the environment you can have such an issue.
- It may be wrong or missing MIME types on the server. See for example ClickOnce on Apache.
- Specific Internet Explorer settings (for example, show content based on content), so try to reset all to default
- Corrupted/missing .NET framework 2.0
Also, please see these posts:
- Troubleshooting Specific Errors in ClickOnce Deployments (MSDN)
- Problems with ClickOnce deployment and IE9 (MSDN)
- ClickOnce is displaying the '.application' file as XML (Stack Overflow)
回答2:
Does it use a .NET control? This solved my issue:
http://social.msdn.microsoft.com/Forums/en-US/a6c7eb28-28b3-4e07-aa11-40145a997271/object-tag-loading-a-net-control-works-in-ie8-red-x-in-ie9?forum=ieextensiondevelopment
来源:https://stackoverflow.com/questions/12163411/clickonce-is-not-working-in-internet-explorer-9