给定关键字不在字典中原创
金蝶云社区-沐忻风
沐忻风
0人赞赏了该文章 6,209次浏览 未经作者许可,禁止转载编辑于2021年05月13日 17:19:53

调用一个方法: 

    ServiceFactory.GetService<MatchService>(ctx)



System.Collections.Generic.KeyNotFoundException:“给定关键字不在字典中。”


此异常最初是在此调用堆栈中引发的: 

    System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.this[TKey].get(TKey)

    Kingdee.BOS.ServicesContainer.GetService.AnonymousMethod__2(string)

    System.Collections.Concurrent.ConcurrentDictionary<TKey, TValue>.GetOrAdd(TKey, System.Func<TKey, TValue>)

    Kingdee.BOS.ServicesContainer.GetService<T>(string, string)

    Kingdee.BOS.Contracts.ServiceFactory.GetService<T>(string)

    Kingdee.BOS.Contracts.ServiceFactory.GetService<T>(Kingdee.BOS.Context, string)

    Kingdee.BOS.Contracts.ServiceFactory.GetService<T>(Kingdee.BOS.Context)

    MasterDataTransfer.Form1.btnContext_Click(object, System.EventArgs) - 位于 Form1.cs

    System.Windows.Forms.Control.OnClick(System.EventArgs)

    System.Windows.Forms.Button.OnClick(System.EventArgs)

    ...

    [调用堆栈已截断]


图标赞 0
0人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!

您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!

请选择打赏金币数 *

10金币20金币30金币40金币50金币60金币
可用金币: 0