一种ClickOnce应用程序在Windows7上安装时发生错误的解决办法

Posted Snowdust

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一种ClickOnce应用程序在Windows7上安装时发生错误的解决办法相关的知识,希望对你有一定的参考价值。

今天在一台Windows7上安装用ClickOnce部署的应用程序时无法安装,错误如下:


PLATFORM VERSION INFO
Windows : 6.1.7601.65536 (Win32NT)
Common Language Runtime : 4.0.30319.1022
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.1022 (RTMGDR.030319-1000)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)


SOURCES
Deployment url: http://10.1.1.88/ADT_AMA_QD/ADT%20Data%20Collector%20for%20AMA%20Quality%20Dept.application
Server : Microsoft-IIS/7.5
X-Powered-By : ASP.NET


IDENTITIES
Deployment Identity: ADT Data Collector for AMA Quality Dept.application, Version=1.0.13.814, Culture=neutral, PublicKeyToken=a03faa5516cb11a7, processorArchitecture=x86


APPLICATION SUMMARY
* Installable application.


ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://10.1.1.88/ADT_AMA_QD/ADT%20Data%20Collector%20for%20AMA%20Quality%20Dept.application resulted in exception. Following failure messages were detected:
+ Exception occurred during store operation.
+ Value does not fall within the expected range.


这个应用程序在Windows XP上是OK的,估计这是Windows 7自带的.NET Framework版本的问题。经过搜索网络,解决办法如下:
卸载Microsoft NET Framework 4 Extented
和Microsoft NET Framework 4 Clinet Profile

重新安装Microsoft .NET Framework 4.0,问题解决。

以上是关于一种ClickOnce应用程序在Windows7上安装时发生错误的解决办法的主要内容,如果未能解决你的问题,请参考以下文章

ClickOnce 应用程序和 Windows 防火墙

C# clickonce用处

win7打开某个软件提示“clickonce已停止工作”怎么解决

ieclickonce设置

C# Window编程随记——ClickOnce程序部署

从任务计划程序调用 ClickOnce 应用程序