DAST Configuration file error

 something happened to your original post. It appears you may have wanted to paste something and wrote over the content of the message with 'vv'. I saw in my email your original question and would like to provide a response. You asked:

Hi everybody, 

Could anyone help me please?

I have an error with .\DAST.ConfigurationToolCLI.exe when I run this command

.\DAST.ConfigurationToolCLI.exe configureEnvironment --mode New --settingsFile "C:\dast_config\SampleSettingsFile.json" --outputDirectory "C:\dast_config"

And this is the error message 

ValidateDatabaseConnection failed. System.ArgumentException: Keyword not supported: 'trustservercertificate,integrtedsecurity'.
at Microsoft.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at Microsoft.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at Microsoft.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at Microsoft.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at Microsoft.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at Microsoft.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at Microsoft.Data.SqlClient.SqlConnection..ctor(String connectionString)
at DAST.ConfigurationToolCLI.Services.DatabaseProviderService.SQLDatabaseProvider.ValidateDatabaseConnection(String connectionString)
Validation error occurred. Error code: DboLevelDatabaseAccountLoginFailed. Error Message: Dbo level database account login failed.

It appears line 9 and possibly line 14 are incorrect. Without seeing your config file, I can only assume you are trying to add the additionalConnectionProperties to trust the server certificate and to use integrated security. If you would like to use integrated security, you would mark useWindowsAuthentication: true on line 8. Then on line 9 & 14 you would add additionalConnectionProperties: TrustServerCertificate=True.

Parents
  • Suggested Answer

    0  
    It appears line 9 and possibly line 14 are incorrect. Without seeing your config file, I can only assume you are trying to add the additionalConnectionProperties to trust the server certificate and to use integrated security. If you would like to use integrated security, you would mark useWindowsAuthentication: true on line 8. Then on line 9 & 14 you would add additionalConnectionProperties: TrustServerCertificate=True.
Reply
  • Suggested Answer

    0  
    It appears line 9 and possibly line 14 are incorrect. Without seeing your config file, I can only assume you are trying to add the additionalConnectionProperties to trust the server certificate and to use integrated security. If you would like to use integrated security, you would mark useWindowsAuthentication: true on line 8. Then on line 9 & 14 you would add additionalConnectionProperties: TrustServerCertificate=True.
Children
No Data