Добрый день. Встречалась ли кому-нибудь такая ошибка при попытке установки пакетов через WorkspaseConsole?
Лог ошибки:
Installing data
Error: Incorrect syntax near ')'.
at System.Data.SqlClient.SqlConnection.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.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
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 Terrasoft.Core.DB.DBExecutor.FailoverExecute[TResult](DbCommand command, Func`1 func)
at Terrasoft.Core.DB.DBExecutor.Execute(String sqlText, QueryParameterCollection parameters)
at Terrasoft.Core.DB.Query.Execute()
at Terrasoft.Tools.WorkspaceConsole.WorkspaceConsoleApplication.InstallWorkspaceFromRepository(String sourcePath, String destinationPath, String packageName)
at Terrasoft.Tools.WorkspaceConsole.WorkspaceConsoleApplication.InstallWorkspacesFromRepository(String sourcePath, String destinationPath, String packageName)
at Terrasoft.Tools.WorkspaceConsole.WorkspaceConsoleApplication.Execute()
at Terrasoft.Tools.Common.BaseConsoleApplication`2.Run(String[] args)
Скрипт запуска:
chcp 1251
SET IIS_NAME=Test
SET WS_NAME=Default
SET APP_WC_DIR=Z:\%IIS_NAME%\Terrasoft.WebApp\DesktopBin\WorkspaceConsole
SET CHECKOUT_PATH=C:\Workplaces\Kercher\Packages\DestinationPath
SET PKG_PATH=C:\Workplaces\Kercher\Packages\Create
SET LOG_PATH=C:\Workplaces\Kercher\Packages\Log
ECHO | %APP_WC_DIR%\Terrasoft.Tools.WorkspaceConsole.exe -packageName=KercherMain -workspaceName=%WS_NAME% -operation=InstallFromRepository -sourcePath=%PKG_PATH% -destinationPath=%CHECKOUT_PATH% -continueIfError=true -logPath=%LOG_PATH% -regenerateSchemaSources=true -updateDBStructure=true -installPackageData=true -installPackageSqlScript=true
pause
Само приложение находится на другом сервере. На диск Z замаплен путь к приложению.