I can't seem to make a connection to an AlwaysOn Availability Group Listener in SSIS when using ADO.NET. My SQL Server is a 3 node cross-subnet cluster. I have set the MultiSubnetFailover to true and increased the timeout to 60 seconds but the connection attempt is returning this error:
Test connection failed because of an error in initializing provider. Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21143; handshake=0;
I can connect from the same server using Management Studio. I am also able to connect with the OLE DB driver but I want to use ADO.NET to avail of the ApplicationIntent flag.