本文介绍了Interop.CDO问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个使用lib编译为任何cpu(库引用interop.CDO)的应用程序(编译了所有cpu),并且出现了以下错误消息:

I have created an application (compiled any cpu) that use a lib also compiled as any cpu (the library reference interop.CDO), and i have this error message:

无法加载文件或程序集'Interop.CDO,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null'或其依赖项之一。试图以不正确的格式加载程序。

Could not load file or assembly 'Interop.CDO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.Attempt was made to load the program with an incorrect format.

问题与64/32兼容性有关。任何解决此问题的方法吗?

The problem is related with 64/32 compatibility. any solution for this problem ?

感谢帮助。

推荐答案

我认为CDO在上个世纪已经过时了。当然,它永远不会有64位版本。毫无疑问,.NET具有良好的SMTP支持。

I think that CDO was deprecated in the previous century. There certainly will never be a 64-bit version of it. There's little point, .NET has good SMTP support.

如果需要,在EXE项目上使用项目+属性,构建选项卡,平台目标= x86。如果是ASP,则必须在32位应用程序池中运行Web应用程序。

Use Project + Properties, Build tab, Platform target = x86 on your EXE project if you have to. If this is ASP then you'll have to run your web app in a 32-bit application pool.

这篇关于Interop.CDO问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-20 23:17