Missing certificate causes The collection already contains item with same key 'net.transport'
exception
#1405
Labels
Software versions
MySqlConnector version: 2.3.1
Server type (MySQL, MariaDB, Aurora, etc.) and version: mysql:8.2.0
.NET version: 8.0
Describe the bug
Attempt to connect to a MySQL server using a SSL certificate but specify an invalid path to the client certificate file. MySqlConnector will throw
InvalidOperationException: The collection already contains item with same key 'net.transport'
. It should throw aFileNotFoundException
or some other more self-explanatory error.Exception
Expected behavior
It should throw a
FileNotFoundException
or some other more self-explanatory error.Additional context
Possibly related to #1074.
The text was updated successfully, but these errors were encountered: