Thanks Barry, the following is the error exactly i am getting for some time but it goes off after some time and start working.
Server Error in '/' Application. The remote server returned an error: (403) Forbidden. 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 server returned an error: (403) Forbidden. 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 server returned an error: (403) Forbidden.] System.Net.HttpWebRequest.GetResponse() +1532114 cCommon.GeocodeAddress(GooglePoint GP, String GoogleAPIKey) +226 GooglePoint.GeocodeAddress(String sAPIKey) +5 home.GetGoogleMap() +208 home.Page_Load(Object sender, EventArgs e) +50 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436 Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434 On Nov 18, 12:55 am, "Barry Hunter" <[EMAIL PROTECTED]> wrote: > Are you on a shared host? And/or one that uses a proxy for outgoing > requests? Sounds probably that someone on the same network is > downloading stuff from Google and causing blocks. (as this doesnt > sound like a Google Maps API error, which would be in the 600 range) > > Otherwise I would try looking at the exact message returned (including > headers) - as it might well give you some clues as to who exactly is > generateing the error message (which might well rule out the above > guess) . > > On Mon, Nov 17, 2008 at 1:21 PM, Balamurugan Ranganathan > > > > <[EMAIL PROTECTED]> wrote: > > > Hey > > I am facing a very peculiar problem, I am using google maps API for a > > webpage, > > > Objective is to get the Google Pin point on the Map for the addresses > > that the user has entered. while doing this i get the following error > > "THE REMOTE SERVER RETURNED AN ERROR - 403 FORBIDDEN".Occasionally it > > does works fine .(but on my local system it always works.) > > > I am Using the following code to get the reference from Google API > > (i.e., longitude,latitude) > > > string sURL = "http://maps.google.com/maps/geo?q=" + GP.Address + > > "&output=xml&key=" + GoogleAPIKey; > > WebRequest request = WebRequest.Create(sURL); > > > request.Timeout = 1000000000; > > // Set the Method property of the request to POST. > > WebResponse response = request.GetResponse(); > > StreamReader reader = new StreamReader > > (response.GetResponseStream()); > > DataSet DS = new DataSet(); > > DS.ReadXml(reader); > > > does any one have a solution? > > > Cheers > > Thanks > > -- > Barry > > -www.nearby.org.uk-www.geograph.org.uk- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
