Visual Studio错误提示“System.BadImageFormatException”异常

在调试Winform程序时遇到如下错误:

“System.BadImageFormatException”类型的未经处理的异常在 未知模块。 中发生
未能加载文件或程序集“OpenPCINFO.exe”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。 出现了

System.BadImageFormatException

System.BadImageFormatException

产生的原因是将.NETFramework版本从2.0改为了4.5

解决办法只要将app.config中的v2.0删除即可

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <startup>
    <!--<supportedRuntime version="v2.0.50727"/>-->
  <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
</configuration>

再次运行已经不会弹出 System.BadImageFormatException 错误了

官方QQ群号码:922069959(空)1093596563(空)

您可能感兴趣的文章

    留言评论

    发表评论

    您的电子邮箱地址不会被公开。 必填项已用*标注

    Captcha Code

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select * from vps_autoblog_queue where is_running >0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=6 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=6 and source_url_key='85f8e27ce55bd78fd33f47d2b1409198'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(6,'https://www.hijk.pw/post-sitemap.xml','85f8e27ce55bd78fd33f47d2b1409198',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=4 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=4 and source_url_key='54b1dccf98c13c81f546faf82132bc77'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(4,'https://ssr.tools/sitemap-posttype-post.2020.xml','54b1dccf98c13c81f546faf82132bc77',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=2 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=2 and source_url_key='91372ddcd9e4809b115feaa5b6f00815'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(2,'https://tlanyan.me/post-sitemap.xml','91372ddcd9e4809b115feaa5b6f00815',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=7 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=7 and source_url_key='569e17863f7693f1afa9e9256af9dcff'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(7,'https://aisoa.cn/sitemap.xml','569e17863f7693f1afa9e9256af9dcff',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=9 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=9 and source_url_key='cc9416f8df40d8c3a48e66856b1cd6fd'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(9,'https://www.v2rayssr.com/sitemap.xml','cc9416f8df40d8c3a48e66856b1cd6fd',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select count(*) from vps_autoblog_queue where task_id=10 and is_running>0

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,fetched,is_running,last_date_time from vps_autoblog_queue where task_id=10 and source_url_key='74714f67855820f0c701ce905b231f27'

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    insert into vps_autoblog_queue(task_id,source_url,source_url_key,create_date_time,not_check_stoped,post_interval) values(10,'https://doubibackup.com/sitemap.xml','74714f67855820f0c701ce905b231f27',1750364779,0,0)

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,is_running,last_post_time,post_interval,not_check_stoped from vps_autoblog_queue WHERE is_running>0 and fetched=0 order BY id ASC

    WordPress数据库错误: [Table 'ssrvps.vps_autoblog_queue' doesn't exist]
    select id,sn_id from vps_autoblog_queue WHERE is_running=0 and fetched=0 order BY id ASC LIMIT 1