我下載了eBay SDK以用於我們正在開發的內部應用程序。我們正在Mono上發展。當我運行在.NET上易趣的Hello World樣本,它會顯示以下輸出:eBay C#SDK無法在Mono上工作
+++++++++++++++++++++++++++++++++++++++
+ Welcome to eBay SDK for .Net Sample +
+ - HelloWorld +
+++++++++++++++++++++++++++++++++++++++
Begin to call eBay API, please wait ...
End to call eBay API, show call result:
eBay official Time: 11/27/2013 3:02:19 PM
當我使用Mono運行它,我得到如下:
Unhandled Exception: eBay.Service.Core.Sdk.ApiException: Exception has been thrown by the target of an invocation.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: WebServiceBindingAttribute is required on proxy class 'eBay.Service.Core.Sdk.eBayAPIInterfaceService2'.
at System.Web.Services.Protocols.SoapTypeStubInfo..ctor (System.Web.Services.Protocols.LogicalTypeInfo logicalTypeInfo) [0x00000]
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
etc...etc...etc...
我找到了一個解決辦法,並會將其張貼在下面的答案中。
的是什麼版本的單? – knocte
我正在使用3.2.3,但根據我在下面的答案中發佈的Novell Bugzilla報告,此錯誤自至少2.10.x起已存在。 –
這個bug可能是從0.1版本開始的;)請你總是問一個關於單聲道的問題,指定你正在使用的版本 – knocte