I was trying to do a small test and start using the Google Maps Api to display static maps in my sites. I started by copying the example in Google maps. After registering for my unique key and pasting the key my code it was not displaying anything on the page, no errors and for sure no map either.
This is the piece of code (I know the line with the key will be all over the place… sorry about that)
<html xmlns="http://www.w3.org/1999/xhtml" >
<form id="form1" runat="server">
The problem was that I entered the incorrect domain for testing when registering for my key. Instead of using the domain name of my site I should have entered: “http://localhost” as my development environment hosting name. Once I redo the registration with the correct name I was given a new key which work flawlessly.