Repository navigation
PermissionDemand error after update dbup-sqlserver 7.1.0 #32
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues
Library Version
7.1.0
What happened?
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 67
at DbUp.Engine.UpgradeEngine.PerformUpgrade() in //src/dbup-core/Engine/UpgradeEngine.cs:line 69
The 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 67
at DbUp.Engine.UpgradeEngine.PerformUpgrade() in //src/dbup-core/Engine/UpgradeEngine.cs:line 69Reactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working
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).