Answered by:
Issue in registering plug in on Online CRM 2011

Question
-
Hi,
I have downloaded latest CRM SDK 2011, and inside bin folder I am using pluginregisttion.exe to registering a plugin but when I am connecting this tool to my online CRM, it is throwing following error
Unhandled Exception: System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
Server stack trace:
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
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.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.AuthenticateLiveIdInternal(ClientCredentials clientCredentials, SecurityTokenResponse deviceToken, String keyType)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse, String keyType)
at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.Authenticate(ClientCredentials clientCredentials, SecurityTokenResponse deviceTokenResponse)
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateCore()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
at Microsoft.Crm.Tools.PluginRegistration.CrmConnection.RetrieveOrganizations()
at Microsoft.Crm.Tools.PluginRegistration.ConnectionsForm.OpenConnection(CrmConnection con)
Inner Exception: System.ServiceModel.FaultException: Authentication FailureI am using Discovery URL : https://anybodycan.crm5.dynamics.com
userid : neeraj@anybodycan.onmicrosoft.com and password use to login to online CRM
please suggest the resolution
Neeraj Sharma
Thursday, February 7, 2013 3:40 PM
Answers
-
Hello,
It seems that you use wrong discovery server. You should try to use following Discovery URL for your case - https://disco.crm5.dynamics.com
To be sure what is Discovery service for your case open your CRM - Settings - Customization - Developer Resources - you will have discovery service Urk inside.
Freelance Developer for Dynamics CRM 4.0/2011
- Edited by Andrii ButenkoMVP, Moderator Thursday, February 7, 2013 8:20 PM
- Proposed as answer by Adam Vero Thursday, February 7, 2013 8:46 PM
- Marked as answer by JLattimerMVP, Moderator Thursday, October 31, 2013 4:16 AM
Thursday, February 7, 2013 8:17 PMModerator
All replies
-
Hello,
It seems that you use wrong discovery server. You should try to use following Discovery URL for your case - https://disco.crm5.dynamics.com
To be sure what is Discovery service for your case open your CRM - Settings - Customization - Developer Resources - you will have discovery service Urk inside.
Freelance Developer for Dynamics CRM 4.0/2011
- Edited by Andrii ButenkoMVP, Moderator Thursday, February 7, 2013 8:20 PM
- Proposed as answer by Adam Vero Thursday, February 7, 2013 8:46 PM
- Marked as answer by JLattimerMVP, Moderator Thursday, October 31, 2013 4:16 AM
Thursday, February 7, 2013 8:17 PMModerator -
Thanks Andrii, It worked... I forgot to use this discovery url though I used it earlier.Friday, February 8, 2013 3:21 AM