Skip to main content
Published: April 23 2012, 2:16:00 PMUpdated: November 28 2020, 10:27:05 PM
Product

Why am I getting an assembly not registered error when using  the .NET SDK?

Summary

I am trying to make an API call using the .NET SDK and I am getting a compile error. 



Detailed Description

When building your API call, you have to be very careful of how you build your ItemType class.  Specifically when building out your collections like item specifics or shipping details.  You don't want to define them in a function like the example below in the table.  If you do, you may see some of the following compile errors:

1.  The assembly 'eBay.Service, Version=3.735.0.0, Culture=neutral, PublicKeyToken=1d9d786a5932eaf0' is not registered for COM Interop. Please register it with regasm.exe /tlb.

2.  The assembly "C:\Users\`\Documents\Visual Studio 2010\Projects\eBayListing\eBayListing\bin\Debug\eBayListing.dll" could not be converted to a type library. Type library exporter encountered an error while processing

These error happened because I am creating a com dll that is called from another application. I am developing in VS, but calling the dll from Access.

 Public Function BuildItemSpecifics() As NameValueListTypeCollection

        Dim ItemSpecs As New NameValueListTypeCollection()

        Return ItemSpecs

 End Function

Best practice is to create a simple API call first, and then make your code more robust once you have a successful call.  Here are some helpful knowledge base aritcles to go over that show how to set up item specifics, shipping details, and an overview of the .NET SDK,

Answer Title: Making calls using the .NET SDK from a programming environment other than .NET
Answer Link: https://ebaydts.com/eBayKBDetails?KBid=546

Answer Title: VB.NET ReviseFixedPriceItem sample for revising item specifics
Answer Link: https://ebaydts.com/eBayKBDetails?KBid=1648

Answer Title: VB.NET Basic AddFixedPriceItem sample for UK
Answer Link: https://ebaydts.com/eBayKBDetails?KBid=1621



Additional Resources

AddFixedPriceitem: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddFixedPriceItem.html

.NET SDK: https://www.x.com/developers/ebay/documentation-tools/sdks/dotnet

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