I have made a simple app where a user can input their username and password and if their credentials are in the MS SQL database, clicking the login button will direct them to the next page. I established the connection to MS SQL server directly with connection string(yes, I know this is not the best way of doing things). The app works fine on the emulator but not on an android device. I am getting this error: SNI_ERROR_40. CMIIW, I think this error is caused by the failure of opening a connection to the MS SQL server? Any idea why I am only facing this error on the device and how to go about fixing it?