I am using crm 365 online and I am writing a plugin that requires an early bound class so, I am trying to use the crmsvcutil tool to create the early bound class, but I keep getting an error.
Specifically:
C:\Users\rscroggins\SDK\Bin>CrmSvcUtil.exe /url:conquestimaging.crm.dyna
mics.com/XRMServices/2011/Organization.svc /out:EarlyBoundVQL.cs /username:superUser@company.com /password:******** /namespace:RFQLToVQL /servic
eContextName:RFQLToVQLEarlyBind
CrmSvcUtil : CRM Service Utility [Version 8.2.1.8676]
c 2015 Microsoft Corporation. All rights reserved
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Source : mscorl
ib
Method : HandleReturnMessage
Date : 10/18/2017
Time : 8:27:10 AM
Error : An unsecured or incorrectly secured fault was received from the other
party. See the inner FaultException for the fault code and detail.
Stack Trace : Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChann
el.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState
, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChann
el.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message messag
e, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean on
eway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan tim
eout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCall
Message methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa
ta, Int32 type)
at System.ServiceModel.Security.IWSTrustContract.Issue(Message message)
at System.ServiceModel.Security.WSTrustChannel.Issue(RequestSecurityToken rst
, RequestSecurityTokenResponse& rstr)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Issue(AuthenticationCreden
tials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateInternal(Authe
nticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateTokenWithOrgId
ForCrm(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateOnlineFederati
onInternal(AuthenticationCredentials authenticationCredentials)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(Authenticatio
nCredentials authenticationCredentials)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.ClaimsIFDFailOverAuth[T](IServic
eManagement`1 servicecfg, Uri homeRealm, ClientCredentials userCredentials, Clie
ntCredentials deviceCredentials, Int32 depthLevel, Boolean tryNetworkCred)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.CreateAndAuthenticateProxy[T](IS
erviceManagement`1 servicecfg, Uri ServiceUri, Uri homeRealm, ClientCredentials
userCredentials, ClientCredentials deviceCredentials, String LogString)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.DiscoverOrganizations(Uri discov
eryServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCred
entials deviceCredentials)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.QueryLiveDiscoveryServer(Uri dis
coServer)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.FindCrmOnlineDiscoveryServer(Crm
OnlineDiscoveryServers onlineServerList, Boolean useO365Servers)
at Microsoft.Xrm.Tooling.Connector.CrmWebSvc.InitCRM2011Service()
================================================================================
======================================
Inner Exception Level 1 :
Source : Not Provided
Method : Not Provided
Date : 10/18/2017
Time : 8:27:10 AM
Error : Authentication Failure
Stack Trace : Not Provided
================================================================================
======================================
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Unable to Login to D
ynamics CRM
Unable to Login to Dynamics CRM
Exiting program with exception: Connection to CRM is not established. Aborting p
rocess.
CrmSvcUtil Error: 2 : Exiting program with exit code 2 due to exception : System
.Exception: Connection to CRM is not established. Aborting process.
at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.LoadMetadata(ISe
rviceProvider service)
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
CrmSvcUtil Error: 2 : ===== DETAIL ======
CrmSvcUtil Error: 2 : Source : CrmSvcUtil
Method : LoadMetadata
Date : 8:27:10 AM
Time : 10/18/2017
Error : Connection to CRM is not established. Aborting process.
Stack Trace : at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.L
oadMetadata(IServiceProvider service)
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
================================================================================
======================================
From everything I have read it is a Server sync issue specifically the time between local machine and server are off by more then 5 minutes but I went into my server and its time matches up with my local machine. Any help or pointer would be greatly appreciated.