2
我有2個項目,X和Y. Y調用Web服務,配置在Y的app.config(它的一個DLL)中定義。如何在其他項目中包含Web參考端點配置
當XŸ調用方法,我得到以下異常:
System.InvalidOperationException: Could not find default endpoint element that references contract 'xxxx.ServiceSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.
我怎麼能包括/導入個Y的app.config到X的web.config所以它都會有這樣的配置呢?
謝謝!
你確定它應該住在? –
Himberjack
2011-05-30 10:24:22
它取決於您要導入的設置,標準Web設置進入,現在您的案例是端點(您充當客戶端),那麼它將進入/。 –
Sumit
2011-05-30 10:51:39