sovroc81
asked on
Set up a google map in web config
Hi there,
I am using a google map for my ASP 2.0 application. I am able to see it fine in my machine but when I try in someody's else, it says to register the google API key. I have the key already but I don't think i have it in the right place. How should I set up the API key in the web.config file? Right now, I have it in the codebehind. Where in the web.config it goes.
I am using a google map for my ASP 2.0 application. I am able to see it fine in my machine but when I try in someody's else, it says to register the google API key. I have the key already but I don't think i have it in the right place. How should I set up the API key in the web.config file? Right now, I have it in the codebehind. Where in the web.config it goes.
ASKER
I am using the development key I guess. My server name is programmer3 and when I registered for the google API, this is what I used for the url..programmer3/foldernam e/...
When I run the website from my machine, I see the map just fine. But when I use somebody's else and type in programmer3/....to view the site, then I get this error message.
The google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at code.google.com/apis/maps
Do I have to buy it?
When I run the website from my machine, I see the map just fine. But when I use somebody's else and type in programmer3/....to view the site, then I get this error message.
The google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at code.google.com/apis/maps
Do I have to buy it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The dev key allows the google map to run on a single machine only, I had problems when I moved the code to a dev server so that I could try it out accross my network. I had to get another key registered for my server so I could use it with IIS6.0.
Are you running from the other machine or are you browsing to your machine to vie the page?
BB