未能从程序集加载类型“ADODB.FieldsToInternalFieldsMarshaler” [英] Could not load type 'ADODB.FieldsToInternalFieldsMarshaler' from assembly

查看:4289
本文介绍了未能从程序集加载类型“ADODB.FieldsToInternalFieldsMarshaler”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下的code:

MAPITable mt = rStores.MAPITable;

        Recordset rs = new Recordset();
        rs = mt.ExecSQL(@"SELECT EntryID, ""http://schemas.microsoft.com/mapi/proptag/0x0FF60102"" As PR_INSTANCE_KEY from Name");

        while (!rs.EOF)
        {
            var fields = ((dynamic)rs.Fields);
            for (int f = 0; f < fields.Count; f++)
            {
                var field = fields[f];
                var name = field.Name;
                var value = field.Value;
            }
            Debug.Print(rs.Fields["EntryID"].Value);
            Debug.Print(rs.Fields["PR_INSTANCE_KEY"].Value);
            rs.MoveNext();

当我尝试访问记录的字段,我得到这个问题的上述错误。我看到张贴的问题<一href="http://stackoverflow.com/questions/5666265/adodbcould-not-load-type-adodb-fieldstointernalfieldsmarshaler-from-assembly">here,但这并没有帮助我。

When I try to access the recordset fields, I get the aforementioned error in the subject. I saw the question posted here, but that did not help me.

更新:没关系 - 上市的解决办法<一href="http://connect.microsoft.com/VisualStudio/feedback/details/476238/error-while-using-adodb-recordset"相对=nofollow>这里

UPDATE: Nevermind - workaround listed here

推荐答案

不幸的是你的链接到的解决方法是坏了。找不到网页。我发现以下解决方法。

Unfortunately your link to the workaround is broken. Page Not found. I found the following workaround.

ADODB属性的参考文献: 嵌入互操作类型:假 复制本地:真 特定版本(英文也许隔离?):假

ADODB Properties from References: Embed Interop Types: false Copy local: true specific version (in English maybe isolated?): false

这篇关于未能从程序集加载类型“ADODB.FieldsToInternalFieldsMarshaler”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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