Purchase_Create failure. The method called is not listed in this application manifest

If I create a Purchase_Create in C# and send to QuickFile, it fails with a rather odd message:

The method called is not listed in this application manifest.

However if I copy the same XML into the sandbox, it works fine. Obviously something must be different with this request, as all of my other requests (e.g. Client_Search, Client_InsertContacts, Invoice_Create, etc) all work fine.

How I send the request:

        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://quickfile.co.uk/WebServices/API/invoices.ashx");
        request.Method = "POST";
        request.ContentType = "application/xml;charset=UTF-8";
        request.Accept = "application/xml;charset=UTF-8";

        using (System.IO.Stream stream = request.GetRequestStream())
        {
            using (System.IO.StreamWriter writer = new System.IO.StreamWriter(stream))
            {
                writer.WriteLine(xmlDocument);
            }
        }

        Task<WebResponse> responseTask = Task.Factory
            .FromAsync<WebResponse>(request.BeginGetResponse,
                                    request.EndGetResponse,
                                    null);

Any hints on what I am doing wrong? Thanks!

That error message usually indicates that the method you’re calling is not listed in the application permissions.

Are you able to check this and report back?

Ah ok, thanks! Google didn’t bring anything up about that error message so I was a bit lost about its meaning.

1 Like

This topic was automatically closed after 7 days. New replies are no longer allowed.