Hi all,
I've a confusing problem. I try to install K10 on two local machines, one running Win7, the other Win10. The installation works perfectly on Win7, but it fails on Win10:
[2017-10-04 15:08:10] Creating DB "K10"...
[2017-10-04 15:08:10] Database "K10" created.
[2017-10-04 15:08:10] Creating DB objects...
[2017-10-04 15:08:10] Data creation failed Folder with default data must exist.
[2017-10-04 15:08:10] Failed to install database.Message: [DataConnection.HandleError]:
Query:
UPDATE [CMS_SettingsKey] SET KeyDefaultValue='10.0', KeyValue='10.0' WHERE KeyName='CMSDBVersion'
Caused exception:
Invalid object name 'CMS_SettingsKey'.
Stack Trace:
at CMS.DataEngine.AbstractDataConnection.HandleError(String queryText, Exception ex)
at CMS.DataEngine.AbstractDataConnection.ExecuteNonQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)
at CMS.DataEngine.SqlInstallationHelper.InstallDatabase(String connectionString, String scriptsFolder, String dbObjectsErrMessage, String defaultDataErrMessage, LogMessage log, String dbSchema)
at Installer.InstallationManager.InstallDatabase()
Invalid object name 'CMS_SettingsKey'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at CMS.DataEngine.AbstractDataConnection.ExecuteNonQuery(String queryText, QueryDataParameters queryParams, QueryTypeEnum queryType, Boolean requiresTransaction)
[2017-10-04 15:08:10] Installation failed.
The database is created, but it has no tables.
This happens no matter if I try to install the database in SQL Server or use Kentico's localdb. The user is the same domain user and he has the same access rights on both PC.
Any ideas?
Thanks, Lorenz