Inhalte aufrufen


How to clear installation setting caching


1 Antwort zu diesem Thema

#1 DragonZelda



  • Members
  • 3 Beiträge

Geschrieben: 19 March 2018 - 04:56

I open the project 3.x by using Visual Studio 2017 and use debug mode. 
First time it is running smooth, I key in all the values and everything is okay.

But after that, I want to try to change another connection string.


Then the problem come. 

I can't find how to reset the connection string.

If I delete the existing database it will prompt out error at code CachingProviderServices.cs at SmartStore.Data Caching.


protected override bool DbDatabaseExists(DbConnection connection, int? commandTimeout, StoreItemCollection storeItemCollection)
return _providerServices.DatabaseExists(connection, commandTimeout, storeItemCollection);
instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)'
'((System.Data.SqlClient.SqlConnection)connection).ServerVersion' threw an exception of type 'System.InvalidOperationException'
I check the connection variable, it contain the previous data I key in.
But I can't find a way to remove it even I use search entire project by searching connection name.
May I know how to reset the caching data? Thanks.

#2 DragonZelda



  • Members
  • 3 Beiträge

Geschrieben: 19 March 2018 - 06:40

Find out the solution.

Delete the current.txt at SmartStore.Web/App_Data/Tenants/Default which is not included in the project.

Auf dieses Thema antworten