从MSCRM 2013到Azure Service Bus的代理实体 [英] Broker entity from MSCRM 2013 to Azure Service Bus

查看:82
本文介绍了从MSCRM 2013到Azure Service Bus的代理实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在创建服务端点时遇到问题。我想要完成的任务是让CRM平台将帐户/联系人实体发布到Microsoft Azure Service Bus上。因为这是CRM 2013 Online,我无法上传与服务总线通信所需的Microsoft.ServiceBus.Dll程序集。



在线查看您似乎可以创建服务有效地为您做到这一点的终点。看来,如果您创建一个服务端点并且有一个插件将使用指定的步骤将实体代理到总线上(例如,异步更新或创建后操作步骤),您将能够查询队列并获取实体。



我创建了服务端点,创建了服务总线但是我得到了以下异常。我真的希望有人会有这个想法..



显然,异常是说它无法创建消息,因为找不到服务,但我不是确定这也是指的是什么服务?



错误信息:



未处理的异常:System.ServiceModel.FaultException`1 [[Microsoft.Xrm.Sdk.OrganizationServiceFault,Microsoft.Xrm.Sdk,Version = 6.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35]]:无法创建消息:NotFound ,指定地址没有托管服务。 TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PMDetail:
< OrganizationServiceFault xmlns:i = http://www.w3.org/2001/XMLSchema-instance xmlns = http://schemas.microsoft .com / xrm / 2011 /合同 >
< < span class =code-leadattribute> ErrorCode > -2147204747 < / ErrorCode >
< ErrorDetails xmlns:d2p1 = http://schemas.datacontract.org/2004/07/System.Collections.Generic / >
< 消息 > 无法创建消息:NotFound,未在指定地址托管服务。 TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PM < /消息 >
< 时间戳 > 2014-12-12T21:47:06.1684956Z < /时间戳 >
< InnerFault >
< ErrorCode > -2147220970 < / ErrorCode >
< ErrorDetails xmlns:d3p1 = http://schemas.datacontract.org/2004/07/System.Collections.Generic / >
< 消息 > 无法创建消息:NotFound,未在指定地址托管服务。 TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PM < /消息 >
< 时间戳 > 2014-12-12T21:47:06.1684956Z < /时间戳 >
< InnerFault i:nil = true / >
< TraceText i:nil = true / >
< / InnerFault >
< TraceText > [Microsoft.Crm。 ServiceBus:Microsoft.Crm.ServiceBus.ServiceBusPlugin]
[977fee79-ef81-e411-9ab9-d89d67633d24:accountupdatedserviceendpoint:帐户更新]
< / TraceText >
< / OrganizationServiceFault >

服务器堆栈跟踪:
在System.ServiceModel.Channels.S erviceChannel.HandleReply(ProxyOperationRuntime操作,ProxyRpc& rpc)
在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout)
at System.ServiceModel.Channels。 ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

解决方案

< blockquote>您好db7uk,



您之前是否在Azure中创建了一个队列? Crm服务端点需要一个路径(当您注册它时),这是您的Azure Service Bus队列。



当队列不存在时,我遇到同样的问题我正在尝试知道队列过期的原因。


Hi,

I have an issue with a service endpoint that I have created. The task I am trying to accomplish is to have the CRM platform post account / contact entities onto the Microsoft Azure Service Bus. Because this is CRM 2013 Online I cannot upload the Microsoft.ServiceBus.Dll assembly needed to communicated with the service bus.

Looking online it seems that you can create a service endpoint that effectively does this for you. It seems that if you create a service endpoint and have a plugin that will broker the entity onto the bus with a specified step (for example, an asynchronous update or create post-operation step), you will be able to query the queue and obtain the entity.

I have created the service endpoint, created the service bus but I am getting the following exception. I was really hoping that someone would have an idea..

Obviously the exception is stating that it cannot create a message because the service is not found, but I am not sure what service this is referring too?

Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Message could not be created: NotFound, No service is hosted at the specified address. TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PMDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147204747</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>Message could not be created: NotFound, No service is hosted at the specified address. TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PM</Message>
  <Timestamp>2014-12-12T21:47:06.1684956Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>Message could not be created: NotFound, No service is hosted at the specified address. TrackingId:5ad5e4eb-7e5b-4097-b738-c8d2ecb4ac08_G35,TimeStamp:12/12/2014 9:47:06 PM</Message>
    <Timestamp>2014-12-12T21:47:06.1684956Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText>[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusPlugin]
[977fee79-ef81-e411-9ab9-d89d67633d24: accountupdatedserviceendpoint: Update of account]
</TraceText>
</OrganizationServiceFault>

Server stack trace:
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

解决方案

Hi db7uk,

Did you created a queue in Azure before ? The Crm service endpoint requires a 'path' (when you registered it) which is your Azure Service Bus queue.

I have this same issue when the queue does not exist anymore, and i am currently trying to know why the queue is expired.


这篇关于从MSCRM 2013到Azure Service Bus的代理实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆