subgurim.net: The remote server returned an error: (403) Forbidden.

Last Reply on Jul 22, 2014 01:51 AM By Mudassar

Posted on Jul 22, 2014 01:51 AM

The following error is coming

The remote server returned an error: (403) Forbidden.

while working with google maps the code I have written for this is

            string fulladdress = string.Format("{0}.{1}.{2}", txtStreet.Text, txtCity.Text, txtCountry.Text);
            string skey = ConfigurationManager.AppSettings["googlemaps.subgurim.net"];
            //HttpWebRequest request = (HttpWebRequest)WebRequest.Create(fulladdress);
            //request.UseDefaultCredentials = true;


            GeoCode geocode;
            geocode = GMap1.getGeoCodeRequest(fulladdress);
            var glatlng = new Subgurim.Controles.GLatLng(geocode.Placemark.coordinates.lat, geocode.Placemark.coordinates.lng);
            GMap1.setCenter(glatlng, 16, Subgurim.Controles.GMapType.GTypes.Normal);
            var oMarker = new Subgurim.Controles.GMarker(glatlng);
            GMap1.addGMarker(oMarker);

 

Posted on Jul 22, 2014 01:51 AM Modified on on Jul 22, 2014 01:52 AM

You need to check the tutorials

http://en.googlemaps.subgurim.net/