Answered by:
Register CRM Service Endpoint issue

Question
-
Dear all,
I have an error to register a Service Endpoint to the Microsoft Azure Service Bus (in plugin registration tool). Our MSCRM Online is on CTP environment. However, I can register the Service Endpoint in a OSDP testing environment. Any help is greatly appreciated.
Error:
Could not connect to net.tcp://sg1crmsitesvip/CrmRouterService. The connection attempt lasted for a time span of 00:00:01.0140065. TCP error code 10061: No connection could be made because the target machine actively refused it 10.210.239.70:808.
Details:
Plugin Trace:
[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusCheckPlugin]
[eeb706f2-b05f-4d8a-a71b-4ef680f22c5a: Verify Service Endpoint Authentication]
Error Message:
Unhandled Exception: System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://sg1crmsitesvip/CrmRouterService. The connection attempt lasted for a time span of 00:00:01.0140065. TCP error code 10061: No connection could be made because the target machine actively refused it 10.210.239.70:808.
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Open()
at Microsoft.Crm.ServiceBus.RouterClient.Start(String endpointHostName)
at Microsoft.Crm.ServiceBus.RouterClientManagerExternal.RetrieveReadyClient()
at Microsoft.Crm.ServiceBus.ServiceBusService.Dispatch(ServiceBusEndpointInformation endpointInfo, IExecutionContext context)
at Microsoft.Crm.ServiceBus.ServiceBusService.PostInternal(String assemblyName, EntityReference serviceEndpoint, Boolean validateOnly, IExecutionContext context)
at Microsoft.Crm.ServiceBus.ServiceBusCheckPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Asynchronous.V5ProxyPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Asynchronous.EventOperation.InvokePlugin(AsyncExecutionContext context, IPlugin pluginInstance)
Inner Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 10.210.239.70:808
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
Monday, April 29, 2013 8:47 AM
Answers
All replies
-
Is the plugin running in Crm Online ? If so, I wouldn't expect it to be able to resolve an address like net.tcp://sg1crmsitesvip - you'd need a public domain name, and to use http or https
Otherwise, the error code is not very specific, but there are two likely causes:
- I'm assuming you are making a WCF call ? If so, some of the configuration settings that you're using are not what the WCF service expects. Note that, if making a call from a plugin, then the app.config settings will not be available, and you may have to apply binding or other configuration settings within your code
- There may be a security issue - e.g. authentication, or whether to use SSL.
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
Monday, April 29, 2013 9:57 AMModerator -
Is the plugin running in Crm Online ? If so, I wouldn't expect it to be able to resolve an address like net.tcp://sg1crmsitesvip - you'd need a public domain name, and to use http or https
Otherwise, the error code is not very specific, but there are two likely causes:
- I'm assuming you are making a WCF call ? If so, some of the configuration settings that you're using are not what the WCF service expects. Note that, if making a call from a plugin, then the app.config settings will not be available, and you may have to apply binding or other configuration settings within your code
- There may be a security issue - e.g. authentication, or whether to use SSL.
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
Hi DavidJennaway,
I am also not sure where sg1crmsitesvip came from. I just register Service Endpoint via Plugin Registration Tool (from the latest CRM SDK v5.0.15).
Monday, April 29, 2013 10:53 AM -
So the name sg1crmsitesvip is not supplied by you ? What about the other part of the url, CrmRouterService ?
If you are not providing these, then it looks like the problem is internal to the Microsoft infrastructure
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk
Monday, April 29, 2013 1:24 PMModerator -