Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapCustom Query Connection Strings - The Solution!!Custom Query Connection Strings - The Solution!!
Previous
 
Next
New Post
4/12/2009 6:50 AM
 

Lots of people have been having problems with their connections strings not working and their maps hanging on "Fetching...".

There are many posts in this forum related to this issue, some of which don't mention the connection string specifically but I think the same solution should fix your problems and allow you to access your external data. I'm not part of the project team, nor was I suffering from the problem as my data is local (at the moment), but it was bugging me so I had a dig around today and think I've found the cause.

The problem seems to be caused by a bug (i'm going to enter a bug for this to see if I've analysed it properly) in the Admin code for the map control panel. If you are a power user (which you must be to use a Custom Query) then the code makes the assumption that what you are entering into the Connection String field is the name of a setting in the web.config file that contains your connection string. Entering an actual connection string will simply cause the code to go looking for an entry in the Web.Config file that it can't possibly find, hence the map points never being retrieved let alone rendered.

THE SOLUTION

I have tested this procedure and it worked for me:

  • Edit your web.config file and find the section called <appSettings>. You'll find a legacy connection string to your DNN database in this section already.
  • Add a new Key Name and set its value to be your connection string
  • In the Map Settings panel, make sure that the Connection String is exactly the same as the new Key Name that you just created

Example web.config entry:

    <add key="MapTest" value="Server=<servername>;Database=<databasename>;uid=<userid>;pwd=<password>;" />
 

That's it! You may need to reload your site now to ensure that the web.config file is re-parsed but making that change should hopefully resolve the problem for you.

I should point out that my map data is on my DNN database, so I created my MapTest connection to point at exactly the same database but I cannot see any reason why this now won't work for all of you on a remote database.

I'd appreciate it if someone can confirm that this has resolved their problems on this thread so that others know that the technique works!

Regards, Sean


Regards,
Sean

www.puffettfoto.com
 
New Post
9/23/2009 12:09 PM
 

 Thanks Sean.  Luckily I found this while I still had some hair left.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsMapMapCustom Query Connection Strings - The Solution!!Custom Query Connection Strings - The Solution!!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out