Hello,
I have been trying to connect to our clients' CRM 2016 organizations using the PluginRegistrationTool We have 5 organizations created with the same Deployment Manager, using the same SQL server, the same Front End server as well as the same Back End Server. The version on the CRM organizations are 8.2.5.4. I have used the 8.X version of the PRT to connect to all but one of these orgs in the past. Updates were installed 6/24, but I cannot verify if that was when the issue started. The orgs also all use the same AD FS 3.0 for their IFD/authentication
I have tried using version 8.2.1.8676 of the PRT, as well as 9.0.0.9455 (I am aware this version is not made for on prem orgs). I am able to use the 8.2.1.8676 version to connect to a CRM 2015 org without issue. I have checked the Event Viewer on all of the servers, but there does not seem to be any event that is logged when this happens.
I appreciate any assistance you can offer me.
Connection settings for the PRT:
Deployment Type: On-Premises
Server: orgname.domain.com
Port: 443
Use SSL: True
Authentication Source: IFD
Username: AD domain\ admin username (I have tried this with and without the 'domain\'. In the past, I included it and it worked)
Domain: AD domain
Errors I have received:
1. With 'Use SSL' checked:
======================================================================================================================Source : mscorlib
Method : HandleReturnMessage
Date : 7/8/2019
Time : 9:18:17 AM
Error : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
Stack Trace : Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
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)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 Microsoft.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================
======================================================================================================================Source : System.ServiceModel
Method : Retrieve
Date : 7/8/2019
Time : 9:20:55 AM
Error : Metadata contains a reference that cannot be resolved: 'http://orgname.domain.com:443/XRMServices/2011/Discovery.svc?wsdl&sdkversion=8.2'.
Stack Trace : at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
at Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)
at Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateManagement[TService](Uri serviceUri, Boolean enableProxyTypes, Assembly assembly)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IServiceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials userCredentials, ClientCredentials deviceCredentials, String LogString)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discoveryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmConnectionManager.ValidateServerConnection(CrmOrgByServer selectedOrg)
======================================================================================================================
Inner Exception Level 1 :
Source : System
Method : GetResponse
Date : 7/8/2019
Time : 9:20:55 AM
Error : The request was aborted: The operation has timed out.
Stack Trace : at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
======================================================================================================================I have tried to go to http://orgname.domain.com:443/XRMServices/2011/Discovery.svc?wsdl&sdkversion=8.2 and nothing happens. If i go to orgname.domain.com:443/.../Discovery.svc, I see the XML page.
Steps I have taken so far:
1. Restart both Async Services
2. iisreset
3. Attempted to connect from another computer (same exact result)
4. Attempted to connect using the PRT on the Front End server. (same result)