+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Keep losing Google API Key

Keep losing Google API Key

3 posts, 1 answered
  1. Jess Askey
    Jess Askey avatar
    20 posts
    Registered:
    25 Feb 2010
    27 Oct 2010
    Link to this post
    Hello...

    Im running 3.7 SP2 and it seems that my Google API key keeps dissapearing on me for some reason. I will enter it at

    http://www.mysite.com/Sitefinity/Admin/Modules.aspx?module=Events&route=EventsControlPanel.GeomappingSettingsView

    and save it and my maps will work for a few days... then Viola... maps stop working and under the event it tells me that I need to set up a google API key. When I goto the Admin page again for GeoMapping, it is empty. Im not using any of the other mapping services, just google. I have other people adding events via the dashboard but they are not messing with the GeoMapping settings.

    Does anyone have any thoughts/reasons this might be happening?

    thank you

    jess
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    27 Oct 2010
    Link to this post
    Hi Jess,

    The google maps key should be entered in the web.config and this is the place from where EventsView control and Events module use it.

    </libraries>
            <events defaultGenericProvider="Events" googleMapsAPIKey="" googleMapsAPIUrl="http://maps.google.com/maps?file=api&;v=2.x&key=" yahooMapsAPIKey="" yahooMapsAPIUrl="http://api.maps.yahoo.com/ajaxymap?v=3.7&;appid=" liveSearchMapsAPIUrl="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2">
                <genericContentProviders>
                    <add providerName="Events" publicationDateField="Publication_Date" expirationDateField="Expiration_Date" eventStartField="Event_Start" eventEndField="Event_End" streetField="Street" cityField="City" countryField="Country" stateField="State" geomappingDataField="Geomapping_Data" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_"/>
                </genericContentProviders>
            </events>

    Most probably the key you use is not valid or you have two keys which are not the same and valid for your domain. In such cases Google thiks that you are cheating and showing the js that you need a new key. Please make sure that the map on your website, google and google maps key in the web.config are the same when you use EventsView control

    We read the key at runtime from googleMapsAPIKey property but there is no code that removes the key or alter it.



    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Jess Askey
    Jess Askey avatar
    20 posts
    Registered:
    25 Feb 2010
    27 Oct 2010
    Link to this post
    Hi Ivan...

    Excellent... thank you. I didn't know it was set down in the web.config as I had always just configured it in the GUI. I added it there and will see what happens.

    jess
Register for webinar
3 posts, 1 answered