INFO : 2021-05-08 08:35:20Z - There are no change scripts to run.
INFO : 2021-05-08 08:35:20Z - Deploying Database artifact to working directory...
INFO : 2021-05-08 08:35:21Z - Deploying Web artifact to artifact-staging...
INFO : 2021-05-08 08:35:33Z - Artifact deployed.
INFO : 2021-05-08 08:36:07Z - Stopping app pool ChooseYourStory...
INFO : 2021-05-08 08:36:07Z - App pool ChooseYourStory state is now Stopping.
INFO : 2021-05-08 08:36:10Z - App pool is stopped.
INFO : 2021-05-08 08:36:10Z - Site "ChooseYourStory" configured.
INFO : 2021-05-08 08:36:10Z - Starting app pool ChooseYourStory...
INFO : 2021-05-08 08:36:10Z - App pool ChooseYourStory state is now Started.
INFO : 2021-05-08 08:36:10Z - App pool is started.
INFO : 2021-05-08 08:36:26Z - Artifact deployed.
INFO : 2021-05-08 08:36:26Z - Executing C:\Websites\ChooseYourStory\ChooseYourStory.WebApplication\dbartifact-staging\OBJECTS\1.FUNCTIONS\1.MAG.CsvToTable.sql...
ERROR: 2021-05-08 08:36:26Z - Unhandled exception: System.Data.SqlClient.SqlException (0x80131904): Cannot open database "ChooseYourStory" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Inedo.Extensions.SqlServer.SqlServerDatabaseProvider.<GetConnectionAsync>d__15.MoveNext() in C:\ProgramData\BuildMaster\Temp\Service\_E19543\Src\SqlServer\InedoExtension\DatabaseProviders\SqlServerDatabaseProvider.cs:line 271
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Inedo.Extensions.SqlServer.SqlServerDatabaseProvider.<ExecuteQueryAsync>d__14.MoveNext() in C:\ProgramData\BuildMaster\Temp\Service\_E19543\Src\SqlServer\InedoExtension\DatabaseProviders\SqlServerDatabaseProvider.cs:line 250
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Inedo.BuildMaster.DatabaseConnections.ExecuteDatabaseScriptsJob.<ExecuteAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Inedo.Agents.AgentCommand`1.<Inedo-Agents-IAgentCommandWithResponse-ExecuteAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Inedo.Agents.AgentCommandDispatcher.<ExecuteCommandAsync>d__11.MoveNext()
ClientConnectionId:6cb1f724-d074-4d52-86b4-7decf63ded2b
Error Number:4060,State:1,Class:11
