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