{"action":"created","issue":{"url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25","repository_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools","labels_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25/comments","events_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25/events","html_url":"https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25","id":139350931,"number":25,"title":"XrmToolBox connects to CRM Online, but early bound generation fails to connect","user":{"login":"steveculshaw","id":64320,"avatar_url":"https://avatars.githubusercontent.com/u/64320?v=3","gravatar_id":"","url":"https://api.github.com/users/steveculshaw","html_url":"https://github.com/steveculshaw","followers_url":"https://api.github.com/users/steveculshaw/followers","following_url":"https://api.github.com/users/steveculshaw/following{/other_user}","gists_url":"https://api.github.com/users/steveculshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/steveculshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveculshaw/subscriptions","organizations_url":"https://api.github.com/users/steveculshaw/orgs","repos_url":"https://api.github.com/users/steveculshaw/repos","events_url":"https://api.github.com/users/steveculshaw/events{/privacy}","received_events_url":"https://api.github.com/users/steveculshaw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-08T18:08:07Z","updated_at":"2016-03-09T11:27:51Z","closed_at":"2016-03-09T11:27:51Z","body":"Downloaded the Full zip of of 2016.2.29.1, unblocked it and then unzipped it\r\n\r\nRan XrmToolBox, created a new connection to our CRM Online DEV instance using the unique name URL\r\n\r\nOpened the early bound generator\r\n\r\nSelected the list of entities to exclude ... the list was populated OK\r\nAdded all entities except for the one I was interested in\r\nThen tried to create the code ...\r\n\r\nAnd get an error ... Error\t: Connection to CRM is not established. Aborting process.\r\n\r\nCRM Authentication Type Detected: OnlineFederation\r\nExecuting ... command line deleted ...\r\nCrmSvcUtil : CRM Service Utility [Version 8.0.1.7297]\r\n¸ 2015 Microsoft Corporation. All rights reserved\r\n\r\nMicrosoft.Xrm.Tooling.Connector.CrmServiceClient Error: 2 : Unable to Login to Dynamics CRM\r\nUnable to Login to Dynamics CRM\r\nCrmSvcUtil Error: 2 : Exiting program with exit code 2 due to exception : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Connection to CRM is not established. Aborting process.\r\n   at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.Microsoft.Crm.Services.Utility.IMetadataProviderService.LoadMetadata()\r\n   at DLaB.CrmSvcUtilExtensions.Entity.MetadataProviderService..ctor(IMetadataProviderService defaultService, IDictionary`2 paramters)\r\n   --- End of inner exception stack trace ---\r\n   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at Microsoft.Crm.Services.Utility.ServiceFactory.CreateInstance[TIService](TIService defaultServiceInstance, String parameterValue, CrmSvcUtilParameters parameters)\r\n   at Microsoft.Crm.Services.Utility.ServiceProvider.InitializeServices(CrmSvcUtilParameters parameters)\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.get_ServiceProvider()\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)\r\nCrmSvcUtil Error: 2 : ===== DETAIL ======\r\nCrmSvcUtil Error: 2 : Source\t: mscorlib\r\nMethod\t: InvokeMethod\r\nDate\t: 17:56:54\r\nTime\t: 08/03/2016\r\nError\t: Exception has been thrown by the target of an invocation.\r\nStack Trace\t: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)\r\n   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)\r\n   at Microsoft.Crm.Services.Utility.ServiceFactory.CreateInstance[TIService](TIService defaultServiceInstance, String parameterValue, CrmSvcUtilParameters parameters)\r\n   at Microsoft.Crm.Services.Utility.ServiceProvider.InitializeServices(CrmSvcUtilParameters parameters)\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.get_ServiceProvider()\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()\r\n   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)\r\n======================================================================================================================\r\nInner Exception Level 1\t: \r\nSource\t: CrmSvcUtil\r\nMethod\t: Microsoft.Crm.Services.Utility.IMetadataProviderService.LoadMetadata\r\nDate\t: 17:56:54\r\nTime\t: 08/03/2016\r\nError\t: Connection to CRM is not established. Aborting process.\r\nStack Trace\t: at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.Microsoft.Crm.Services.Utility.IMetadataProviderService.LoadMetadata()\r\n   at DLaB.CrmSvcUtilExtensions.Entity.MetadataProviderService..ctor(IMetadataProviderService defaultService, IDictionary`2 paramters)\r\n======================================================================================================================\r\n"},"comment":{"url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/comments/194250761","html_url":"https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25#issuecomment-194250761","issue_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/25","id":194250761,"user":{"login":"daryllabar","id":9728423,"avatar_url":"https://avatars.githubusercontent.com/u/9728423?v=3","gravatar_id":"","url":"https://api.github.com/users/daryllabar","html_url":"https://github.com/daryllabar","followers_url":"https://api.github.com/users/daryllabar/followers","following_url":"https://api.github.com/users/daryllabar/following{/other_user}","gists_url":"https://api.github.com/users/daryllabar/gists{/gist_id}","starred_url":"https://api.github.com/users/daryllabar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daryllabar/subscriptions","organizations_url":"https://api.github.com/users/daryllabar/orgs","repos_url":"https://api.github.com/users/daryllabar/repos","events_url":"https://api.github.com/users/daryllabar/events{/privacy}","received_events_url":"https://api.github.com/users/daryllabar/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T11:27:51Z","updated_at":"2016-03-09T11:27:51Z","body":"I had this happen locally once. Make sure the URLs in your toolbox config are updated to be the unique named versions."}}