CRM Dynamics Connection Manager

108 views
Skip to first unread message

diana....@naht.org.uk

unread,
Mar 2, 2016, 7:27:53 AM3/2/16
to COZYROC
Hi

I am trying to connect to our on-premise CRM server using the Connection Manager.

I am not getting the options you describe on your website.  I have the options 365, Federation, Live.

When I try to connect to my 2011 on-premise server I am getting the following error.  Can you give me any ideas as to what I need to check on the on-premise server with regards to accessing the Discovery service.


===================================


------------------------------
Program Location:

   at CozyRoc.Dynamics.Crm2011.TokenProxy._Authenticate()
   at CozyRoc.Dynamics.Crm2011.TokenProxy.GetToken()
   at CozyRoc.Dynamics.Crm2011.DiscoveryService.DiscoveryServiceClientWCF.CreateChannel()
   at System.ServiceModel.ClientBase`1.CreateChannelInternal()
   at System.ServiceModel.ClientBase`1.get_Channel()
   at CozyRoc.Dynamics.Crm2011.DiscoveryService.DiscoveryServiceClient.Execute(DiscoveryRequest request)
   at CozyRoc.SqlServer.SSIS.CrmConnection2011.Connect()
   at CozyRoc.SqlServer.SSIS.CrmConnection.Connect()
   at CozyRoc.SqlServer.SSIS.CrmConnectionManagerForm.btnTestConnection_Click(Object sender, EventArgs e)

===================================

The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. (System)

------------------------------
Program Location:

   at System.Net.HttpWebRequest.GetResponse()
   at CozyRoc.Dynamics.Crm2011.TokenProxy._CallService(String url, String soapMessage)
   at CozyRoc.Dynamics.Crm2011.TokenProxy._Authenticate()

===================================

The remote certificate is invalid according to the validation procedure. (System)

------------------------------
Program Location:

   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
   at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
   at System.Net.TlsStream.CallProcessAuthentication(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
   at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at System.Net.ConnectStream.WriteHeaders(Boolean async)



Ivan Peev

unread,
Mar 2, 2016, 7:35:04 AM3/2/16
to COZYROC
Hi Diana,

The certificate of your on-premise Dynamics CRM server is invalid. You have two options:

1. Correct your server certificate.
2. Setup the machine where you use COZYROC's Dynamics CRM adapters to explicitly trust the current Dynamics CRM server certificate.

diana....@naht.org.uk

unread,
Mar 2, 2016, 7:55:22 AM3/2/16
to COZYROC
I have just installed the latest version of cozy roc to resolve the 'Federation' issue.  However although our CRM Dynamics is 'on premise', it is hosted remotely which I think is probably the issue.  Is there anyway around this, we have access to the server etc but not sure your connnection manager will let us do the double hop?

Ivan Peev

unread,
Mar 2, 2016, 7:57:47 AM3/2/16
to COZYROC
Diana,

Your issue is not the double hop. Your issue is the invalid server certificate.

naht...@gmail.com

unread,
Mar 15, 2016, 9:11:34 AM3/15/16
to COZYROC
Hi Ivan

So I have resolved the cerfication error message which was an issue our side with a very old server.  I am now connecting from a new server.  Can you confirm the syntax required in the 'server' dialogue and the credentials, ie are they the AD credentials used to access the CRM, or are they credentials to access the server.

Many thanks.

Di

Ivan Peev

unread,
Mar 15, 2016, 9:16:10 AM3/15/16
to COZYROC
Hi Diana,

You have to provide credentials to access the CRM.
Reply all
Reply to author
Forward
0 new messages