in

dashCommerce

An ASP.NET Open Source e-Commerce Application

How to change the database connection string?

Last post 07-09-2008 9:48 AM by jamescarters. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-09-2008 8:21 AM

    How to change the database connection string?

     hi all:

    I am newbie to C# as well as dashCommerce. However, i would like to learn something from it. After opening the solution  file from dc_3.0.1_Source by vs 2005, i can sucessfully build this entire application. However, when i click on "debug" button, the database connection error always shows up. 

    System.InvalidOperationException: The ConnectionString property has not been initialized.
       at System.Data.SqlClient.SqlConnection.PermissionDemand()
       at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at log4net.Appender.AdoNetAppender.InitializeDatabaseConnection()

     

    Furthermore, the debug mode show that the error is thrown out from line 147 of SiteSettings class.

    I've been check all the app.config file. It seems to me that very app.config (from core, content, store, web) has a connection string, which one should i modify first?

    Are there relevent development guide available?

    Thanks in advance

    Filed under:
  • 07-09-2008 9:48 AM In reply to

    Re: How to change the database connection string?

     The one you want is in connectionString.config in the root of the web. You would be better off though running the installation by navigating to mysite/install/install.aspx which will walk you through the process.

Page 1 of 1 (2 items)