{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/12","repository_url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration","labels_url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/12/comments","events_url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/12/events","html_url":"https://github.com/Microsoft/Dynamics-AX-Integration/issues/12","id":187319763,"number":12,"title":"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.","user":{"login":"Sharran","id":20470764,"avatar_url":"https://avatars.githubusercontent.com/u/20470764?v=3","gravatar_id":"","url":"https://api.github.com/users/Sharran","html_url":"https://github.com/Sharran","followers_url":"https://api.github.com/users/Sharran/followers","following_url":"https://api.github.com/users/Sharran/following{/other_user}","gists_url":"https://api.github.com/users/Sharran/gists{/gist_id}","starred_url":"https://api.github.com/users/Sharran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sharran/subscriptions","organizations_url":"https://api.github.com/users/Sharran/orgs","repos_url":"https://api.github.com/users/Sharran/repos","events_url":"https://api.github.com/users/Sharran/events{/privacy}","received_events_url":"https://api.github.com/users/Sharran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-04T12:19:44Z","updated_at":"2016-11-29T07:38:37Z","closed_at":null,"body":"We are using AX Data job Processor the URL is pointed towards Production BOX(we are running this from DEV Box).\r\n\r\nWhen we drop the file in the input path, the file is processed and moved into In process folder.\r\n\r\nAfter that we are not getting response from the production server. getting the below stated error.\r\n\"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.\"\r\nThis happens only in production box, works fine in dev and sandbox.\r\n\r\nKindly help us to resolve this issue."},"comment":{"url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/comments/263498176","html_url":"https://github.com/Microsoft/Dynamics-AX-Integration/issues/12#issuecomment-263498176","issue_url":"https://api.github.com/repos/Microsoft/Dynamics-AX-Integration/issues/12","id":263498176,"user":{"login":"RaphaelTagliani","id":21175192,"avatar_url":"https://avatars.githubusercontent.com/u/21175192?v=3","gravatar_id":"","url":"https://api.github.com/users/RaphaelTagliani","html_url":"https://github.com/RaphaelTagliani","followers_url":"https://api.github.com/users/RaphaelTagliani/followers","following_url":"https://api.github.com/users/RaphaelTagliani/following{/other_user}","gists_url":"https://api.github.com/users/RaphaelTagliani/gists{/gist_id}","starred_url":"https://api.github.com/users/RaphaelTagliani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaphaelTagliani/subscriptions","organizations_url":"https://api.github.com/users/RaphaelTagliani/orgs","repos_url":"https://api.github.com/users/RaphaelTagliani/repos","events_url":"https://api.github.com/users/RaphaelTagliani/events{/privacy}","received_events_url":"https://api.github.com/users/RaphaelTagliani/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T07:38:37Z","updated_at":"2016-11-29T07:38:37Z","body":"```\r\npublic class OAuthHelper\r\n    {\r\n        /// <summary>\r\n        /// Retrieves an authentication header from the service.\r\n        /// </summary>\r\n        /// <returns>The authentication header for the Web API call.</returns>\r\n        public static async Task<string> GetAuthenticationHeader(WebServiceClientConfiguration wsc)\r\n        {\r\n            // enforce TLS 1.2 : this code could be executed only once, but I prefer to reset it before every call, to make sure that this setting will\r\n            // not be altered by another framework component in the meantime\r\n            System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;\r\n            AuthenticationContext authenticationContext = new AuthenticationContext(wsc.ActiveDirectoryTenant);\r\n            ClientCredential clientCredential = new ClientCredential(wsc.ClientAppId, wsc.ClientKey);\r\n            UserPasswordCredential upc = new UserPasswordCredential(wsc.UserName, wsc.Password);\r\n\r\n            // ADAL includes an in memory cache, so this call will only send a message to the server if the cached token is expired.\r\n            AuthenticationResult authenticationResult = await authenticationContext.AcquireTokenAsync(wsc.ActiveDirectoryResource, wsc.ClientAppId, upc);\r\n\r\n            return authenticationResult.CreateAuthorizationHeader();\r\n        }\r\n    }\r\n```"}}
{"actor":{"display_login":"RaphaelTagliani"}}