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

问题描述

我创建了一个应用程序(编译任何 cpu),它使用也编译为任何 cpu 的库(库引用 interop.CDO),我收到以下错误消息:

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 位应用程序池中运行您的网络应用程序.

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