Outlook Redemption - runtime binding on a null reference - Stack Overflow

We have an implementation for getting outlook email information using RDO. We've tested this inter

We have an implementation for getting outlook email information using RDO. We've tested this internally on several machines without problems. When running this on one of our customer machines we received the following error:

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot perform runtime binding on a null reference
at CallSite.Target(Closure , CallSite , Object , Int32 )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at ...<GetEntries>d__1.MoveNext()
private static IEnumerable<OutlookAddressEntry> GetEntries(RDOAddressList addressList)
{
    var table = addressList.AddressEntries.MAPITable;

    table.Columns = new[] { "Name", "SMTPAddress" };

    for (var i = 0; i < table.RowCount; i++)
    {
        dynamic row = table.GetRow();
        yield return new OutlookAddressEntry { Name = row[0], Email = row[1] };
    }
}

Please let me know if I've missed something in my implementation, whether I need to gather more information from the Customer's environment or if there are steps I can take towards understanding this problem.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745284889a4620500.html

相关推荐

  • Outlook Redemption - runtime binding on a null reference - Stack Overflow

    We have an implementation for getting outlook email information using RDO. We've tested this inter

    19小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信