Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WebBrowser script error when using google maps

$
0
0

Can't find anything related to this, so there is my entry on this.

Until a few weeks my app would work perfectly with webbrowser control and google maps(With this i mean, my app would show the route between 2 points on a webbrowser control). This week on monday i got a call from a customer complaining about a script error on my app, and that they couldnt see the google maps anymore, and indeed there is a problem, whenever i try to call the webbrowser from code i got a script error window with the information:

Error: InvalidCharachterError

Like i said this have been working so far until this week. I havent found anything on this problem.

Im using wpf with vb.net and on my usercontrol code i have:

Dim URLExample As String = "http://maps.google.nl/maps?f=d&hl=nl&geocode=&saddr=Lijnbaan+3d,+3252CK+Leiderdorp&daddr=3064+HW+Vleutenseweg+386-,+Utrecht&dirflg=h"       

web_view.Navigate(New Uri(URLExample ))

that url is just an example. The same url works on both google chrome and Internet explorer without any error, only when is used from the webbrowser control.

Things i have done:

Hide script errors with supress

add maps.google to trusted web sites

enable scripts on browser

change uri function to anotherURI("transparent", url) that i found on this forum(didnt work)

Thanks for reading and i hope you can help me.

Sorry if i sounded rude but i really dont meant to.

EDIT: even by going to https://maps.google.com i got the script error.

Regards,

Rui Nunes





Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>