You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PermissionDemand error after update dbup-sqlserver 7.1.0 #32
Hello
I've a problem after update dbup-sqlserver 7.1.0
after call PerformUpgrade, it throw an exception that say "The ConnectionString property has not been initialized"
No problem with older version 6.0.16
Relevant log output
2026-02-23 17:45:47 +01:00 [ERR] Upgrade failed due to an unexpected exception: System.InvalidOperationException: The ConnectionString property has not been initialized. at Microsoft.Data.SqlClient.SqlConnection.PermissionDemand() at Microsoft.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)
at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry, SqlConnectionOverrides overrides)
at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
at DbUp.Engine.Transactions.DatabaseConnectionManager.OperationStarting(IUpgradeLog upgradeLog, List`1 executedScripts) in //src/dbup-core/Engine/Transactions/DatabaseConnectionManager.cs:line 67at DbUp.Engine.UpgradeEngine.PerformUpgrade() in //src/dbup-core/Engine/UpgradeEngine.cs:line 69The ConnectionString property has not been initialized.System.InvalidOperationException: The ConnectionString property has not been initialized.at Microsoft.Data.SqlClient.SqlConnection.PermissionDemand()at Microsoft.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) at Microsoft.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry)at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at DbUp.Engine.Transactions.DatabaseConnectionManager.OperationStarting(IUpgradeLog upgradeLog, List1 executedScripts) in //src/dbup-core/Engine/Transactions/DatabaseConnectionManager.cs:line 67at DbUp.Engine.UpgradeEngine.PerformUpgrade() in //src/dbup-core/Engine/UpgradeEngine.cs:line 69
Thanks. All my test cases called only one of the DB operation methods. This problem occurs if more than one is called (e.g. GetScriptsToExecute and PerformUpgrade).
Activity
droyad commentedon Feb 24, 2026
Introduced by #31
droyad commentedon Feb 24, 2026
Thanks. All my test cases called only one of the DB operation methods. This problem occurs if more than one is called (e.g. GetScriptsToExecute and PerformUpgrade).