Hello everyone,
Currently I'm downloading an XML response from Google's API to retrieve
data. On the emulator everything works fine, but when I'm porting it to my
device it returns a weird error:
2011-12-23 15:06:43.060 Ad4You[16639:707] *** WebKit discarded an uncaught
exception in the webView:shouldInsertText:replacingDOMRange:givenAction:
delegate: <NSInvalidArgumentException> Invalid Region
<center:+520816514.00000000, +51271036.00000000 span:+26980.00000000,
+26980.00000000>
I am by the way not using a WebView. The code that I am using is:
XmlSerializer xs = new XmlSerializer(typeof(GeocodeResponse));
WebClient c = new WebClient();
byte[] response = c.DownloadData(string.Format("
http://maps.googleapis.com/maps/api/geocode/xml?address={0}&sensor=false",
this.searchBar.Text));
MemoryStream ms = new MemoryStream(response);
GeocodeResponse geocodeResponse = (GeocodeResponse)xs.Deserialize(ms);
Does anyone know what I am doing wrong?
Thanks!
Mittchel
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch