microsoft / Dynamics-AX-Integration

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

Connection was forcibly closed #105

Open adsnaraujo opened 4 years ago

adsnaraujo commented 4 years ago

Hi Everyone!

I am connected DAX365FO and I tried to execute this code, but i received this message "Connection was forcibly closed"

public static void GetTopRecords(Resources d365) { var vendorsQuery = d365.Vendors.AddQueryOption("$top", "10"); var vendors = vendorsQuery.Execute() as QueryOperationResponse;

        foreach (var vendor in vendors)
        {
            Console.WriteLine("Vendor with ID {0} retrived.", vendor.VendorAccountNumber);
        }
    }

Can you help me ?

pfoolen commented 4 years ago

See https://github.com/microsoft/Dynamics-AX-Integration/issues/45