title: How to fix “The ConnectionString property has not been initialized” in nopCommerce
body: <p>I'm trying to integrate nopCommerce into a third party system but am hitting a problem when I try to access any nopCommerce pages. Because I'm integrating with a third party system I've had to merge web.configs and copy all files over. I have a standalone install of nopCommerce aswell and that is running fine.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>The error I am getting is as follows:</p>
  
  <hr>
  
  <p>The ConnectionString property has not been initialized.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p>
  
  <p>Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized.</p>
  
  <p>Source Error:</p>
  
  <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
  
  <p>Stack Trace:</p>
  
  <p>[InvalidOperationException: The ConnectionString property has not been initialized.]
     System.Data.SqlClient.SqlConnection.PermissionDemand() +5038498
     System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) +20
     System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +126
     System.Data.SqlClient.SqlConnection.Open() +125
     System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean&amp; closeStoreConnectionOnFailure) +52</p>
  
  <p>[EntityException: The underlying provider failed on Open.]
     System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean&amp; closeStoreConnectionOnFailure) +161
     System.Data.EntityClient.EntityConnection.Open() +98
     System.Data.Objects.ObjectContext.EnsureConnection() +81
     System.Data.Objects.ObjectQuery<code>1.GetResults(Nullable</code>1 forMergeOption) +46
     System.Data.Objects.ObjectQuery<code>1.System.Collections.Generic.IEnumerable&lt;T&gt;.GetEnumerator() +44
     System.Linq.Enumerable.ToDictionary(IEnumerable</code>1 source, Func<code>2 keySelector, Func</code>2 elementSelector, IEqualityComparer<code>1 comparer) +151
     System.Linq.Enumerable.ToDictionary(IEnumerable</code>1 source, Func`2 keySelector) +90
     NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetAllSettings() +542
     NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingByName(String name) +121
     NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingValue(String name) +49
     NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingValueBoolean(String name, Boolean defaultValue) +54
     NopSolutions.NopCommerce.BusinessLogic.Configuration.Settings.SettingManager.GetSettingValueBoolean(String name) +41
     NopSolutions.NopCommerce.BusinessLogic.CustomerManagement.CustomerManager.get_UsernamesEnabled() +45
     NopSolutions.NopCommerce.Web.Administration.LoginPage.ApplyLocalization() +108
     NopSolutions.NopCommerce.Web.Administration.LoginPage.Page_Load(Object sender, EventArgs e) +40
     System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
     System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
     System.Web.UI.Control.OnLoad(EventArgs e) +91
     NopSolutions.NopCommerce.Web.BaseNopAdministrationPage.OnLoad(EventArgs e) +44
     System.Web.UI.Control.LoadRecursive() +74
     System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207</p>
  
  <hr>