Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Fixes issue 45 - An unexpected error occurred on a send #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ServiceSamples/ODataConsoleApplication/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using ODataUtility.Microsoft.Dynamics.DataEntities;
using System;
using System.Linq;
using System.Net;

namespace ODataConsoleApplication
{
Expand All @@ -12,6 +13,9 @@ class Program

static void Main(string[] args)
{
// https://github.com/Microsoft/Dynamics-AX-Integration/issues/45
ServicePointManager.SecurityProtocol = ServicePointManager.SecurityProtocol | SecurityProtocolType.Tls12;

// To test custom entities, regenerate "ODataClient.tt" file.
// https://blogs.msdn.microsoft.com/odatateam/2014/03/11/tutorial-sample-how-to-use-odata-client-code-generator-to-generate-client-side-proxy-class/

Expand Down