2012-05-11 52 views
0

我正在嘗試使用Bing Maps Web服務的小應用程序。當我嘗試連接服務器以獲取信息,我得到的錯誤:Bing Maps Web服務沒有端點監聽

There was no endpoint listening at http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc that could accept the message. This is often caused by an incorrect address or SOAP action."

問題是什麼?我的網絡代理可以是原因嗎?

SearchResponse searchResponse = searchResponse = searchService.Search(searchRequest); 

的config文件在<cliente>代碼:

<endpoint address="http://dev.virtualearth.net/webservices/v1/searchservice/searchservice.svc" 
      binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISearchService" 
      contract="SearchService.ISearchService" name="BasicHttpBinding_ISearchService" /> 
+0

因爲你是一個代理在網絡上,你將需要添加在您這裏指定的指定代理地址defaultProxy元素:http://msdn.microsoft.com/en-us/library/kd3cf2ex。 ASPX – Rajesh

回答

0

既然你是一個網絡上的代理,你

如果能幫忙,在線路發生錯誤需要在指定代理地址的地方添加一個defaultProxy元素到你的配置文件中。更多information here

+0

+0

\t \t \t \t 的配置文件具有此,isn't正確? –

+0

默認情況下,useDefaultProxy設置爲true,表示使用機器範圍的代理設置,而不是使用用戶特定的設置,在您的情況下,代理使用可能是用戶設置。 – Rajesh