我正在尝试在sql中创建一个契约,用于将消息从sql推送到nservicebus(msmq)队列,尽管我在执行此代码时收到以下错误消息!任何想法为什么我得到这个? 谢谢, 詹姆斯
CREATE CONTRACT [NServiceBusSendMessageContract]
(
[NServiceBusSendMessage] SENT BY ANY
)
Msg 15151, Level 16, State 1, Line 1
Cannot find the message type 'NServiceBusSendMessage', because it does not exist or you do not have permission.
答案 0 :(得分:1)
你做过这个吗?
CREATE MESSAGE TYPE [NServiceBusSendMessage]
VALIDATION = WELL_FORMED_XML