8 Replies
I think something maybe wrong with my connectiong string. I use xampp mysql
read the exception
how do i check that?
you're catching it in the catch block
yes i know but im not sure how to correctly use that. i catch any exception and just CW that connection was failed
but how do i check exact error
look at the docs for try catch
Change the catch block to
and post the output here
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - Nawiązane połączenie zostało przerwane przez opr
ogramowanie zainstalowane w komputerze-hoście.)
I tried to rebuild solution, Restarted IDE but still same. I don't have any antyviruses. Windows defender has configured exceptions for my IDE
I've tried adding or to my connection string but issue persist