积极答复者
求助:Interop.SHDocVw调用异常

问题
-
System.BadImageFormatException: Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format. File name: 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' at Cloud.WebMonitor.WindowsFormClient.WebMonitorClient.MonitorImmediate(List`1 taskList) at Cloud.WebMonitor.WindowsFormClient.WebMonitorClient.timerTask_Tick(Object sender, EventArgs e) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
这是异常信息,大家帮忙分析下是什么原因,谢谢!
姜敏
答案
全部回复
-
姜敏,
您好!据我所知,BadImageFormatException 常常是由于 系统是x86 和 x64引起的,当您尝试下载为一个不恰当的系统下载一个程序集时就会引起这个错误。
请按小歐建议的把那两个dll删除,这样应该您的程序会自动从合适的系统的选择相应的dll。
您可以看看这个帖子:
如果您还有什么问题,请让我们知道。
Lucy
Lucy Liu [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.