我尝试在Windows 7平台上运行MMC 3.0时出现BadImageFormatException [英] BadImageFormatException when I try to run MMC 3.0 on windows 7 platform

查看:90
本文介绍了我尝试在Windows 7平台上运行MMC 3.0时出现BadImageFormatException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I 创建了一个项目,该项目引用了Microsoft.ManagementConsole.dll以扩展MMC管理单元。

I  created a project which refer to the Microsoft.ManagementConsole.dll for extenting the MMC snap-in.

使用InstallUtil.exe安装此库, 我可以在Windows 10平台上运行这个自定义的管理单元。

by using InstallUtil.exe to install this library,  I can run this self-defined snap-in on windows 10 platform.

 运行installUtil以在Windows 7上安装它也是可以的, 但是当我发现BadImageFormatException错误时尝试运行它。

 it's also ok for running installUtil to install it on windows 7,  but it got the error about BadImageFormatException when I  try to run it.

我在.netframework 4.0中构建我的项目,检查了Microsoft.ManagementConsole.dll是3.0。

I build my project in .netframework 4.0, checked the Microsoft.ManagementConsole.dll is 3.0.

它没关系我尝试在我的本地环境下在.netframework 3.5(在Windows 7和Windows 10上)构建项目。

it's ok when I try to build the project under .netframework 3.5 (both on windows 7 and windows 10) on my local environment.

但我需要使用.netframework 4.0或更高版本来构建环境问题。

but I need to use .netframework 4.0 or above for building environment issue.

谢谢

推荐答案

您好HelloHui,

Hi HelloHui,

感谢您发布此处。

对于您的问题,您可以安装.net 4.0 on Windows 7。

For your question, you could install .net 4.0 on Windows 7.

请检查以下链接。

https://www.microsoft.com/en-us/download/details.aspx?id=17851

Best问候,

Wendy


这篇关于我尝试在Windows 7平台上运行MMC 3.0时出现BadImageFormatException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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