我收到错误消息“此计算机上未安装所需版本的 .NET Framework。” (事件日志中的事件 ID 4096)尝试从 ClickOnce 部署和本地副本安装 VSTO 应用程序时。这很有趣,因为安装了 .NET 框架(在我的 32 位 Windows 7 PC 上)并且 VSTO 应用程序是在同一台机器上开发的(并在 Visual Studio 2008 中工作)。
有人知道为什么我会得到这个异常吗?
Name: From: http://localhost/BlaBla.vsto
"The required version of the .NET Framework is not installed on this computer."
************** Exception Text ************** Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException: "The required version of the .NET Framework is not installed on this computer." at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.<>c__DisplayClass7.b__0()
最佳答案
在检查了明显的原因(参见评论)后,Windows 7 似乎是原因所在。尽管很多人“切换”到 Win7,但它仍然是测试版。
我想到了几点:
- 你能检查 XP 或 Vista 上的 clickonce 安装吗?
- 您是否开启了自动更新?
关于c# - ClickOnce:此计算机上未安装所需版本的 .NET Framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/526264/