Net框架 - "无法找到一个版本的运行时运行该应用程序" [英] .Net framework - "unable to find a version of the runtime to run this application"

查看:372
本文介绍了Net框架 - "无法找到一个版本的运行时运行该应用程序"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与/ .NET Framework版本4.0安装M / C(赢与SP3 XP)(现在没有以前的框架版本)
时,尝试运行这是在以前的框架版本的.NET Framework的IE =编译的程序机> 3.5,碰到下面的初始化错误无法找到一个版本的运行时运行该应用程序。在
谷歌上搜索发现 - 改变配置 <&启动GT;
< supportedRuntime版本=v4.0.30319/>
< /启动>
可以帮助解决,但同样没有奏效。任何帮助,将不胜感激。

Machine with /Net framework version 4.0 installed m/c (win xp with sp3) (no previous framework version present) when try to run the program which is compiled in framework previous version of .net framework i.e =>3.5 ,came across below initialization error "unable to find a version of the runtime to run this application". on googling found -changing config <startup> <supportedRuntime version="v4.0.30319" /> </startup> may help to solve, but that too didn't work. Any help would be appreciated.

推荐答案

我能解决这个问题。
以下信息将是人谁是我的情况帮助。

I could able to solve this issue. Below info would be a help for someone who is in my situation.

下面插入标签启动你的application.config文件

insert below startup tag in your application.config file

<?xml version="1.0"?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>



可能是这个博客条目也将是有益的:的 NET 4.0和混合模式组件

这篇关于Net框架 - &QUOT;无法找到一个版本的运行时运行该应用程序&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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