microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
285 stars 356 forks source link

SoapConsole Failing #83

Open Pr1vEsc opened 5 years ago

Pr1vEsc commented 5 years ago

When I run the SoapConsole on VS2017 for MAC I get the following. System.MissingMethodException: void System.ServiceModel.Channels.HttpTransportBindingElement.set_MaxPendingAccepts(int) at SoapConsoleApplication.Program.Main (System.String[] args) [0x00026] in Dynamics-AX-Integration-master/ServiceSamples/SoapConsoleApplication/Program.cs:22

However if I run the same code on a Windows machine it works fine.

Its failing on var httpsTransportBindingElement = binding.CreateBindingElements().OfType().FirstOrDefault(); if (httpsTransportBindingElement != null) { httpsTransportBindingElement.MaxPendingAccepts = 10000; // Largest posible is 100000, otherwise throws }

Any ideas. Steve