Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

The remote name could not be resolved

Posted on by 595

Hello All,

We are accessing our client system with VPN connection. We are able to access the Development Organizations using http://IPAddress:Port/DevOrgName in the Internet Explorer.


Our task is to develop plugins using visual studio. I created a Dynamics CRM project with IPAddress in "CRM Discovery Server Name", Port in the port number and protocol is http. I am able to connect and successfully logon.

I am able to see the Organizations Org1, Org2. When Org1 is selected the dialog box "Connect to Dynamics CRM Server" is not displaying the solutions of the Org1 and it is closed automatically. same happens with Org2.

Then i thought of checking with plugin registration tool to connect to the Org1 and Org 2.

But the below error is populating.

UNABLE TO CONNECT TO ORGANIZATION

Unhandled Exception: System.InvalidOperationException: Metadata contains a reference that can not be resolved: "http://servername:Port/OrgName/XRMServices/2011/Organization.svc?wsdl".
   bei System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
   bei System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
   bei System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
   bei Microsoft.Xrm.Sdk.Client.ServiceMetadataUtility.RetrieveServiceEndpointMetadata(Type contractType, Uri serviceUri, Boolean checkForSecondary)
   bei Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1..ctor(Uri serviceUri, Boolean checkForSecondary)
   bei Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration..ctor(Uri serviceUri)
   bei Microsoft.Xrm.Sdk.Client.ServiceConfigurationFactory.CreateConfiguration[TService](Uri serviceUri)
   bei Microsoft.Xrm.Sdk.Client.ServiceProxy`1..ctor(Uri uri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
   bei Microsoft.Crm.Tools.PluginRegistration.CrmOrganization.InitializeOrganizationService()
   bei Microsoft.Crm.Tools.PluginRegistration.CrmOrganization.get_OrganizationService()
   bei Microsoft.Crm.Tools.PluginRegistration.OrganizationHelper.LoadMessages(CrmOrganization org, ProgressIndicator prog)
   bei Microsoft.Crm.Tools.PluginRegistration.MainForm.LoadMessages(CrmOrganization org)
   bei Microsoft.Crm.Tools.PluginRegistration.ConnectionsForm.OpenConnection(CrmOrganization org)
Inner Exception: System.Net.WebException: The remote name could not be resolved: 'servername'
   bei System.Net.HttpWebRequest.GetResponse()
   bei System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
   bei System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)

Any ideas?

Thanks,

Abhilash.

*This post is locked for comments

  • Verified answer
    Shantnu Sharma Profile Picture
    Shantnu Sharma 655 on at
    RE: The remote name could not be resolved

    Did you try with IP address instead of server name in the PRT?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans