zoukankan      html  css  js  c++  java
  • .net framework 版本不匹配

    在已安装了.net framework的计算机上部署用.net开发的程序时,若.net framework的版本不匹配,则提示:“ .Net Framework Initialization Error – Unable to find a version of the runtime to run this application”。
    这时候有个简单的办法是,修改(如果没有则创建)程序xxx.exe所在目录的和xxx.exe同名的config文件——xxx.exe.config,使其:
    <configuration>
      <startup>
        <supportedRuntime version="v4.0.30319" />
      </startup>
    
    </configuration
    
     
    version处填写计算机以安装的.net framework版本号(可在控制面板的添加删除程序处看到.net framework的版本号)。
     
    这个方法免去了版本号不一致时的各种纠结
  • 相关阅读:
    2020-08-20
    2020-08-19
    2020-08-14
    2020-08-13
    使用numpy实现机器学习模型
    分治法学习
    2020-08-09
    2020-08-02
    四月是你的谎言下载
    新博客
  • 原文地址:https://www.cnblogs.com/rainduck/p/2938576.html
Copyright © 2011-2022 走看看