[英]“unable to find a version of the runtime to run this application .net framework initialization error” after install
I have a .net project which is currently set to utilise 3.5 of the framework, but for some reason all installs of the app seem to be broken now. 我有一个.net项目,当前将使用该框架的3.5版本,但由于某种原因,该应用程序的所有安装现在似乎已中断。 I believe its related to either SP1 or 4.0 being install via Windows update as we have not updated the software. 我相信它与通过Windows更新安装的SP1或4.0有关,因为我们尚未更新该软件。
On my PC here the app (with some tweaks) runs fine from Visual Studio 2008 but if I use the WIX Setup project to create an installer and install the software I even get the same error running the project from my PC. 在我的PC上,该应用程序(经过一些调整)可以从Visual Studio 2008正常运行,但是如果我使用WIX安装项目创建安装程序并安装软件,我什至在从PC运行该项目时也会遇到相同的错误。
Any idea how I can debug the program and find out whats causing the error? 知道如何调试程序并找出导致错误的原因吗? (Ive inherited the solution so the WIX side of things is a bit lost on me, but it seems straight forward) (我继承了该解决方案,所以WIX方面对我来说有些失落,但这似乎很简单)
I suppose this is related to the supportedRuntime
setting. 我想这与supportedRuntime
设置有关。 Find the dtf.chm
file in your WiX installation, and get acquainted with the topic "Specifying the Runtime Version". 在您的WiX安装中找到dtf.chm
文件,并熟悉“指定运行时版本”主题。 Afterwards explicitly set the version(s) of the runtime your custom action should run on. 之后,显式设置您的自定义操作应在其上运行的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.