{"action":"created","issue":{"url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33","repository_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools","labels_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33/comments","events_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33/events","html_url":"https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33","id":143259525,"number":33,"title":"Trying to use connection to an ifd crm throws exception","user":{"login":"SigrunO","id":16879011,"avatar_url":"https://avatars.githubusercontent.com/u/16879011?v=3","gravatar_id":"","url":"https://api.github.com/users/SigrunO","html_url":"https://github.com/SigrunO","followers_url":"https://api.github.com/users/SigrunO/followers","following_url":"https://api.github.com/users/SigrunO/following{/other_user}","gists_url":"https://api.github.com/users/SigrunO/gists{/gist_id}","starred_url":"https://api.github.com/users/SigrunO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SigrunO/subscriptions","organizations_url":"https://api.github.com/users/SigrunO/orgs","repos_url":"https://api.github.com/users/SigrunO/repos","events_url":"https://api.github.com/users/SigrunO/events{/privacy}","received_events_url":"https://api.github.com/users/SigrunO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":38,"created_at":"2016-03-24T14:19:32Z","updated_at":"2016-04-08T14:48:13Z","closed_at":null,"body":"Hi,\r\n\r\nunfortunatley I cannot use the tool to generate early bindings for an internet facing CRM organization.\r\nI get the following exception, though I have connected to CRM sucessfully with XRM toolbox. Trying to exclude entities from the generated code also lets me select entites, so the connection must be working in some way.\r\n\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.ArgumentNullException: Organization cannot be null or empty.\r\nParameter name: Organization Name\r\n   at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.ConnectToCrmWebService(String crmConnectionString)\r\n   at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.CreateOrganizationServiceEndpoint()\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: 15:15:56\r\nTime\t: 24.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: Microsoft.Xrm.Tooling.Connector\r\nMethod\t: ConnectToCrmWebService\r\nDate\t: 15:15:56\r\nTime\t: 24.03.2016\r\nError\t: Organization cannot be null or empty.\r\nParameter name: Organization Name\r\nStack Trace\t: at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.ConnectToCrmWebService(String crmConnectionString)\r\n   at Microsoft.Crm.Services.Utility.SdkMetadataProviderService.CreateOrganizationServiceEndpoint()\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======================================================================================================================"},"comment":{"url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/comments/207461476","html_url":"https://github.com/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33#issuecomment-207461476","issue_url":"https://api.github.com/repos/daryllabar/DLaB.Xrm.XrmToolBoxTools/issues/33","id":207461476,"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-04-08T14:48:13Z","updated_at":"2016-04-08T14:48:13Z","body":"Thanks for your efforts!"}}