This is a follow up question to this question:
Load local HTML file in a C# WebBrowser
I've created an html file by simply copying the example from this link:
https://developers.google.com/maps/documentation/javascript/examples/marker-simple
When I run it by double clicking the file which opens the regular web browser (i.e Firefox), it works. I then added the HTML to my sln, and change the file's property to always be copied to the output directory. I then tried running it like this:
string curDir = Directory.GetCurrentDirectory();
webBrowser.Navigate(new Uri(String.Format("file:\\{0}\\mymap.html", curDir)));
The browser is opened with the yellow warning on top:
"to help protect your security, your browser has restricted this file from showing active content .."
I'm clicking it, allowing the blocked content, and then I get a message saying there's an error in the script in the page. I'm allowing it to continue, and the browser remains blank.. why is that?