On Apr 9, 10:33 am, vandtran <[email protected]> wrote:
> Hi,
>
> I always get the exception when I try to execute the following code:
> GeoCode geocode = GMap.geoCodeRequest(new GLatLng(39.5, -3.2), Key);
>
> Can someone help me on this?

That is not a problem with the API, it is a .NET problem.

  -- Larry

>
> Here is the exception:
> Server Error in '/Test' Application.
> ---------------------------------------------------------------------------­-----
>
> The remote name could not be resolved: 'maps.google.com'
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.Net.WebException: The remote name could not
> be resolved: 'maps.google.com'
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current web request. Information regarding the origin and location of
> the exception can be identified using the exception stack trace
> below.
>
> Stack Trace:
>
> [WebException: The remote name could not be resolved:
> 'maps.google.com']
>    System.Net.HttpWebRequest.GetResponse() +1502011
>    Subgurim.Controles.GMap.GetGeoCodeRequestCore(String query, String
> Key, GoogleMapsApiPremier premier, outputEnum output, String
> baseCountryCode, GLatLngBounds viewport) +666
>    Subgurim.Controles.GMap.geoCodeRequest(String query, String Key,
> outputEnum output, String baseCountryCode, GLatLngBounds viewport,
> GoogleMapsApiPremier premier) +46
>    Subgurim.Controles.GMap.geoCodeRequest(GLatLng coordinates, String
> Key) +29
>    _Default.btSearch_Click(Object sender, EventArgs e) +141
>    System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
>    System.Web.UI.WebControls.Button.RaisePostBackEvent(String
> eventArgument) +107
>
> System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaiseP­ostBackEvent(String
> eventArgument) +7
>    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
> sourceControl, String eventArgument) +11
>    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
> +33
>    System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +5102
>
>  Thanks,
> Van Duc
>
> ---------------------------------------------------------------------------­-----
> Version Information: Microsoft .NET Framework Version:2.0.50727.42;
> ASP.NET Version:2.0.50727.42

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to