Products

Solutions

Learn More

Partners

Community

Blog

About

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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding an additional connection stringAdding an additional connection string
Previous
 
Next
New Post
2/14/2017 8:18 PM
 

The web.config appears to now encrypt the connectionstrings.  I am writing modules that require access to a different SQL database.  In the past, it was as easy as just adding another connectionstring in web.config but that doesn't seem to be possible now.  How do I add another connection string?

Thanks

 
New Post
2/16/2017 12:29 AM
 
Solved it. You have to decrypt the connectionString section of the web.config then you can add additional connection strings. You can re-encrypt if you like after that (or leave it as is). To decrypt:

1) Install the .NET SDK on the web server
2) Call up an elevated command prompt
3) Enter: aspnet_regiis -pdf "connectionStrings" "path to folder where your web.config is"

If all goes well, this will decrypt your connection string
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesAdding an additional connection stringAdding an additional connection string


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.
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW
DNN Launch Webinar
REGISTER NOW