MassTransit抛出System.MissingMethodException

时间:2017-10-24 06:45:52

标签: asp.net-core masstransit

我的MassTransit中有一个问题,它让我异常 - Before: ['a', 'b', 'c', 3, 5, 4, 'd', 'e', 'f', 1, 'ee'] Before: [] After: ['a', 'c', 5, 'd', 'e', 'f', 1, 'ee'] After: [3, 4, 1] 我的代码是:

System.MissingMethodException

代码捕获异常行:TimeSpan requestTimeout = TimeSpan.FromSeconds(60); CRUDWhiteBlackListRequest crudWhiteBlackListRequest = new CRUDWhiteBlackListRequest() { CorrelationId = Guid.NewGuid(), Operation = operation, FileHashSHA256 = fileHashSHA256, WhiteBlackRecord = whiteBlackList }; IRequestClient<CRUDWhiteBlackListRequest, CRUDWhiteBlackListResponse> client = new MessageRequestClient<CRUDWhiteBlackListRequest, CRUDWhiteBlackListResponse>(_bus, _filePolicyEvaluationUri, requestTimeout); CRUDWhiteBlackListResponse result = await client.Request(crudWhiteBlackListRequest); return result;

消息是:CRUDWhiteBlackListResponse result = await client.Request(crudWhiteBlackListRequest); 1.get_ContentType()'。`

1 个答案:

答案 0 :(得分:0)

我通过更新所有服务的MassTransit软件包版本来解决它,所有服务都将具有相同的版本。