.Net客户端Neo4J连接错误IOException:。。。Neo4j 4.0中的加密设置已更改

.Net客户端Neo4J连接错误IOException:。。。Neo4j 4.0中的加密设置已更改,neo4j,Neo4j,我试图使用.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 c

我试图使用.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.
有几件事需要注意:

  • 我可以使用旧版本的应用程序(driver 1.7)连接到数据库,因此我知道数据库是可访问的
  • 我能够连接到我的3.5数据库的本地副本,因此我知道这不是驱动程序兼容性问题
  • 我可以将Neo4J浏览器远程连接到石墨烯托管的数据库,这是数据库可访问的另一个迹象

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

    我相信对于3.5.x db,4.0.x驱动程序可以工作,但可能不是4.1.x驱动程序。Net客户端实现驱动程序1.7,然后跳到4.1,因此我无法测试4.0,也无法恢复到1.7。我的本地连接3.5很好,你确定吗?这应该是指向4.0.3驱动程序的github链接:如果通过NuGet安装,应该有一种方法来指定包的旧版本:Nope。Neo4j版本或驱动程序版本必须更改,以使它们使用匹配的版本,或彼此之间使用一个次要版本。