title: Yahoo PlaceFinder API Connection Issues
body: <p>I'm trying to used Yahoo's PlaceFinder API to get longitude and latitude for a postcode. Everything works fine on my local machine but when I upload it to my production server I get a connection refused error from Yahoo. I've copied my code below:</p>
  
  <pre><code>Dictionary&lt;string, decimal&gt; GetYahooGeoCode(string postcode)
      {
  
          string url = "http://where.yahooapis.com/geocode?flags=J&amp;appid=[My_App_ID]&amp;location=";
  
          decimal latitude = 0;
          decimal longitude = 0;
  
          try
          {
              dynamic yahooResults = new Uri(url + postcode).GetDynamicJsonObject();
              foreach (var result in yahooResults.ResultSet.Results)
              {
                  latitude = (decimal)result.latitude;
                  longitude = (decimal)result.longitude;
              }
  
              Dictionary&lt;string, decimal&gt; geoCode = new Dictionary&lt;string, decimal&gt;();
  
              geoCode.Add("latitude", latitude);
              geoCode.Add("longitude", longitude);
  
              return geoCode;
          }
          catch (Exception ex)
          {
              Log4NetLogger logger = new Log4NetLogger();
  
              logger.Error(ex);
  
              return null;
          }
      }
  </code></pre>
  
  <p>The error I'm getting is: No connection could be made because the target machine actively refused it. Does anyone have any ideas on this? I have done a lot of searching and can't seem to find any information on this problem. I don't know if this makes any difference but my production server is a dedicated Cloud server. Any help would be appreciated. </p>