Ich hätte vermutet, das der shopname in der DB irgendwo tiefer verankert ist.
Ich habe die DB und das Verz. des alten Shops kopiert und alle Verz. ausser app_data und media gelöscht und im IIS als neue Webseite eingerichtet.
Beim ersten Aufruf kommt der Installationswizard. Ich habe hier dann die DB-Kopie angegeben. Folgende Fehlermeldung erhalte ich:
Setup failed: An error occurred during installation. Stage: PopulateSettings (Sequence contains more than one element)
Wenn ich eine neue DB erstellen lasse, funktioniert das Setup.
Folgendes steht dann im Log:
2018-09-01 21:27:25,782 - INFO Checking requirements
2018-09-01 21:27:32,035 - INFO Building database
2018-09-01 21:27:43,759 - DEBUG Populate: PopulatePictures
2018-09-01 21:27:43,962 - DEBUG Populate: PopulateCurrencies
2018-09-01 21:27:44,041 - DEBUG Populate: PopulateStores
2018-09-01 21:27:44,306 - DEBUG Populate: InstallLanguages
2018-09-01 21:27:44,338 - DEBUG Populate: PopulateMeasureDimensions
2018-09-01 21:27:44,353 - DEBUG Populate: PopulateMeasureWeights
2018-09-01 21:27:44,369 - DEBUG Populate: PopulateTaxCategories
2018-09-01 21:27:44,635 - DEBUG Populate: PopulateCountriesAndStates
2018-09-01 21:27:45,354 - DEBUG Populate: PopulateShippingMethods
2018-09-01 21:27:45,385 - DEBUG Populate: PopulateDeliveryTimes
2018-09-01 21:27:45,401 - DEBUG Populate: PopulateCustomersAndUsers
2018-09-01 21:27:45,744 - DEBUG Populate: PopulateEmailAccounts
2018-09-01 21:27:45,760 - DEBUG Populate: PopulateMessageTemplates
2018-09-01 21:27:45,901 - DEBUG Populate: PopulateTopics
2018-09-01 21:27:46,104 - DEBUG Populate: PopulateSettings
2018-09-01 21:27:46,198 - ERROR An error occurred during installation. Stage: PopulateSettings
SmartStore.Data.Setup.SeedDataException: An error occurred during installation. Stage: PopulateSettings ---> System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at SmartStore.Data.Setup.InvariantSeedData.Settings()
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.PopulateSettings()
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.Populate(String stage, Action populateAction)
--- End of inner exception stack trace ---
2018-09-01 21:27:46,198 - ERROR An error occurred during installation. Stage: PopulateSettings
SmartStore.Data.Setup.SeedDataException: An error occurred during installation. Stage: PopulateSettings ---> System.InvalidOperationException: Sequence contains more than one element
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at SmartStore.Data.Setup.InvariantSeedData.Settings()
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.PopulateSettings()
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.Populate(String stage, Action populateAction)
--- End of inner exception stack trace ---
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.Populate(String stage, Action populateAction)
at SmartStore.Web.Infrastructure.Installation.InstallDataSeeder.Seed(SmartObjectContext context)
at SmartStore.EnumerableExtensions.Each[T](IEnumerable`1 source, Action`1 action)
at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
at SmartStore.Web.Controllers.InstallController.InstallCore(ILifetimeScope scope, InstallModel model)