首页 > 解决方案 > .Net 客户端 Neo4J 连接错误 IOException: ... Neo4j 4.0 中的加密设置已更改

问题描述

我尝试使用 .Net 客户端 4.1.6 连接到由 Graphene 托管的 Neo4J 3.5 版数据库,该客户端在 .NET 中使用驱动程序 4.2。我收到此错误:

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.

有几点需要注意:

  1. 我能够使用我的应用程序的旧版本(驱动程序 1.7)连接到数据库,所以我知道数据库是可访问的
  2. 我能够连接到我的 3.5 数据库的本地副本,所以我知道这不是驱动程序兼容性问题
  3. 我能够将我的 Neo4J 浏览器远程连接到我的 Graphene 托管数据库,这表明该数据库是可访问的

我无法在我的新应用程序中降级驱动程序的版本。我尝试将加密级别设置为EncryptionLevel.Encrypted. 关于为什么会发生此错误的任何帮助都会有所帮助。

标签: neo4j

解决方案


推荐阅读