Could not connect to the database

Exception
System.NullReferenceException: Object reference not set to an instance of an object.
   at PgwSeeds.WebConfigDatabaseConnectionProvider.CreateConnection() in D:\a\1\s\pgwseeds-dw\WebConfigDatabaseConnectionProvider.cs:line 18
   at Dynamicweb.Content.Management.Setup.CanConnectToDatabase(String server, String database, String username, String password, String connectionString, Boolean useIntegratedSecurity)