web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plug-In Registration Tool Crash on Connect to Organization

(0) ShareShare
ReportReport
Posted on by

I am trying to connect to an organization with the Plug-In Registration Tool. From one machine (Windows 8.1) it works fine but from another the exact same copy of the tool crashes with this error:

7522.Untitled.png

I couldn't find any information about this crash online. Any ideas?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Some more detailed information:

    I am trying to connect to a CRM 2015 on-premises organization with the Plug-In Registration Tool from the newest SDK. I have the following setup:

    - Machine 1: Windows 8.1, client only

    - Machine 2: Windows 2012 R2 with CRM installed

    - Another CRM server with three organizations

    I use the exact same copy of the Plug-In Registration Tool on both machines and I am able to connect as follows:

    - From machine 1 to the separate CRM server

    - From machine 2 to the organization running on the same machine

    What I need is to connect from machine 2 to the separate CRM server. I succeed to show the organizations (so login works) but after I select any of the organizations and I want to connect to, I get the above crash.

  • Suggested answer
    KZee Profile Picture
    on at

    Have you checked event logs as there might be some details why it is crashing?

    If there are no details then try an older version of the plugin registration on machine2 (you can connect to CRM2015 even using the tool from 2011 sdk)

    CRM 2011 SDK:

    www.microsoft.com/.../details.aspx

    CRM 2013 SDK:

    www.microsoft.com/.../details.aspx

    Plugin registration tool uses the discovery service to get the list of organizations and then uses the organization service to retrieve details for the selected organization. It is highly unlikely that there would be an issue in the organization service itself otherwise same tool would not be working on machine1 but you can still check that by running fiddler to rule out the communication issues.

    Fiddler will show you all of the http requests made to the web service. Just download it, start it and then try using the plugin registration tool. It should be showing http status code 200 for all of the requests.

    www.telerik.com/.../fiddler

  • Community Member Profile Picture
    on at

    There is nothing in the logs, neither on the client nor on the server.

    The tool from the 2013 SDK fails the same way. The one from 2011 works. Is there any problem if I use the 2011 tool to update a plugin on a 2015 instance?

  • Baris KANLICA Profile Picture
    User Group Leader on at

    Hi,

    What kind of url address are you using? localhost(from server), ip address, ifd enabled system url?? You can try different one which you have used.

    Best Regards,

    Baris

  • Community Member Profile Picture
    on at

    It is an on-premises installation on an Azure machine with IFD, so I use the host name.

    0647.Untitled.png

    I tried adding https:// in front of the server name but it doesn't work ("The remote name could not be resolved: 'https'"). IP address does not work either ("The remote certificate is invalid according to the validation procedure.")

  • Baris KANLICA Profile Picture
    User Group Leader on at

    If you use IFD, there is no chance to use other url styles. Your connection information seems right. In normal condition, you have not get error.

    I strongly recommended that you have to check your internet connection setting on your server. Because, as you said, client doesn't get any error.

    Can you access this url from your server : devcrm.vzdev.ch/.../Organization.svc

  • Community Member Profile Picture
    on at

    I have no problem to access devcrm.vzdev.ch/.../Organization.svc from the browser on the same machine. The internet connection is working fine, also the Plugin Registration Tool from the 2011 SDK works fine, so it doesn't look like a connection problem.

  • Vipin J Profile Picture
    1,603 on at

    Hello Guys,

    I am also having the same Issue.

    I can browse the CRM without any certificate error or some other problem.

    But when I am trying to connect to CRM using a plugin registration tool, I am getting below error trace.

    Source : System.ServiceModel

    Method : Retrieve

    Date : 2016/10/07

    Time : PM 03:20:16

    Error : Metadata contains a reference that cannot be resolved: 'https://*****.****.com/XRMServices/2011/Discovery.svc?wsdl&sdkversion=8'.

    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 : 2016/10/07

    Time : PM 03:20:16

    Error : The remote server returned an error: (407) Proxy Authentication Required.

    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)

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

  • MyCRMBlog Profile Picture
    150 on at

    Hi,

    I was getting same error but only with plugin registration tool, CRM works fine. But error is more related to security token.Can you tell me if this issue with configuration on IFD anything related to SAML token? 

    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.Xrm.Sdk.Discovery.IDiscoveryService.Execute(DiscoveryRequest request)
    at Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy.Execute(DiscoveryRequest request)
    at PluginRegistrationTool.CrmConnection.RetrieveOrganizations() in c:\CRMSDK\5.0.12\sdk\tools\pluginregistration\crmconnection.cs:line 315
    at PluginRegistrationTool.ConnectionsForm.OpenConnection(CrmConnection con) in c:\CRMSDK\5.0.12\sdk\tools\pluginregistration\connectionsform.cs:line 940
    Inner Exception: System.ServiceModel.FaultException: An error occurred when verifying security for the message.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans