Skip to main content
Published: August 15 2006, 3:54:00 PMUpdated: November 28 2020, 2:25:28 PM

I am getting "Web Service framework internal error. execute exception." when calling GetAttributesCS or using AttributesXmlDownloader.DownloadXml
I am getting this error when I call

An unhandled exception of type 'eBay.Service.Core.Sdk.ApiException' occurred in ebay.service.dll
Additional information: Error in the application.

What is going on? I can't get this to work in the Sandbox, it fails all of the time!

You're not doing anything wrong.
These exceptions are due to out of memory conditions on the GetAttributesCS call in the Sandbox.

This problem can happen on occasion in Production.
If you get this problem on Production, please retry according to the guidelines set forth in this Knowledge Base article:

As for the Sandbox, this problem can linger.
The recommendation for the Sandbox is to break the single call for the entire data set into smaller calls for specific AttributeSetID values.
Here is an example of such a call that will get back the data set for Golf Clubs (1901) and Digital Cameras (1787):

  <?xml version="1.0" encoding="utf-8"?>
  <GetAttributesCSRequest xmlns="urn:ebay:apis:eBLBaseComponents">

In the situation where you are trying to use the AttributesDemo sample in the .NET SDK, the problem is that the actual GetAttributesCS call is made by the DownloadXml method in the AttributesMaster.cs file of the eBay.Service.SDK.Attribute project.

You can change the code and rebuild the SDK just to get this going by putting in explicit AttributeSetIDs in the DownloadXml method located in the AttributesMaster.cs file as the lines in bold show:

  public void DownloadXml(ApiContext asn)
    this.mASK = asn;
    GetAttributesCSCall api = new GetAttributesCSCall(asn);
    // let's ask for the attributes for Golf Clubs and Digital Cameras
    api.AttributeSetIDList = new Int32Collection(new int[] {1901,1787});

This will cause the DownloadXml method to load only the metadata for the AttributeSetIDs that you specify, and the call will likely return successfully every time.

Follow the directions in C:\Program Files\eBay\eBay SDK v465.0 for .NET\Source\HowToBuild.htm in order to rebuild the SDK (the file path will vary depending on the exact location you installed the SDK to, and the version of the SDK installed).

How well did this answer your question?
Answers others found helpful