问题描述
无法加载协定为“ServiceReference1.LanguageService”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。PublicFunctionFunctionTranslatorBingSOAP(ByValTextAsString,_ByValTextFormLanguageAsString,_ByValTextReturnLanguageAsString)AsStringStaticlanguagesAsNewDictionary(OfString,String)()DimResultAsStringDimclientAsServiceReference1.LanguageServiceClient_=NewServiceReference1.LanguageServiceClient("")DimLocales()AsString=client.GetLanguagesForTranslate(KeyAppIDBing)DimNams=_client.GetLanguageNames(KeyAppIDBing,TextFormLanguage,Locales)DimiAsULong=0DoWhile(i<Locales.Length)i=(i+1)languages(Locales(i))=Nams(i)LoopReturnResultEndFunction在代码执行到“DimclientAsServiceReference1.LanguageServiceClient_=NewServiceReference1.LanguageServiceClient("")”时抛出无法加载协定为“ServiceReference1.LanguageService”的终结点配置部分,因为找到了该协定的多个终结点配置。请按名称指示首选的终结点配置部分。求解决方法,好有解决方案的连接!谢谢