I trying to connect to a Neo4J version 3.5 database hosted by Graphene using .Net client 4.1.6 which uses driver 4.2 in .NET. I am getting this error:
Connection with the server breaks due to IOException: Unexpected end of stream when performing handshake, read returned 0 Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.
A number of things to note:
- I am able to connect to the database using an old version of my app (driver 1.7), so I know the database is accessible
- I am able to connect to a local copy of my 3.5 database so I know its not a driver compatibility issue
- I am able to connect my Neo4J browser remotely to my Graphene hosted database which is another indication that the database is accessible
I am not able to downgrade the version of the driver in my new app. I tried to set Encryption level to EncryptionLevel.Encrypted
. Any help as to why this error is occuring would be helpful.