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).

4 comments:

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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  4. Good Post. I agree with that nopCommerce is the preferred platform for developing ecommerce websites. Get custom nopcommerce development services that perfectly suit your online business.

    ReplyDelete