【问题标题】:Type mismatch. The return type 'Void' of best-match method on type is not compatible with the 'Result' argument supplied to InvokeMethod类型不匹配。类型上最佳匹配方法的返回类型“无效”与提供给 InvokeMethod 的“结果”参数不兼容
【发布时间】:2017-05-16 08:22:07
【问题描述】:

在 WCF 服务中调用工作流活动时出错

类型不匹配。 “BusinessClass”类型的最佳匹配方法“Mailsend”的返回类型“Void”与提供给 InvokeMethod“JobNotification”的“Result”参数不兼容,后者需要“String”类型的返回值。

【问题讨论】:

  • 你需要实现一个返回类型字符串的方法

标签: wcf workflow workflow-foundation-4


【解决方案1】:

它在定义所有相关参数的Arugment类型的Activity时解决了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    相关资源
    最近更新 更多