Wednesday, April 9, 2014

Changing the database connection string in nopCommerce

In most ASP.NET Web Sites/Web Applications, you expect the database connection string to be stored in the connectionStrings element in the Web.config file.

However, while using nopCommerce, you will notice that there is no connectionStrings element in the Web.config file!!

Therefore, where do you change the database connection string for nopCommerce?

The database connection strings is actually stored in a file called Settings.txt.  This file is located at the root of the App_Data folder in the website.

You can simply change the database connection string in this file to point to a new database (for example when migrating from a development environment to a staging or production environment).


  1. Thanks for your great post.I like this very much, please write more about these,wait for your update. Picscheme - PIC Bonus

  2. Your blog is very nice. You have provided interesting information. I will return to your site often to check. Keep up with your good work. ​PIC Claim Singapore

  3. Spot on with this write-up, I truly think this website wants rather more consideration. I’ll in all probability be again to learn rather more, thanks for that info. ​PIC Claim Singapore

  4. Custom nopCommerce development company; we integrate all the nopCommerce functionalities in your eShop that perfectly suit your needs & fit the purpose.

  5. Nice Post. Get custom Nopcommerce Development that perfectly suit your online business. NopCommerce is the preferred platform for develop ecommerce websites.