dotnet4的机器上应用程序出错

来源:互联网 发布:域名查询接口api 编辑:程序博客网 时间:2024/06/16 05:00

       这几天在一台装有dotnet4的机器上调试我在dotnet3.5环境开发的程序,结果总是弹错.

        后来在网上找到如下代码:

<configuration>
<startup>
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>

          保存到TXT中,名称改为app.config.放到同级目录中去就可以。