cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Unable to connect to neo4j from .NET

I just downloaded the neo4j Desktop and was able to create a new graph instance and connect.

  • Here is the connection message
    You are connected as user neo4j
    to bolt://localhost:7687
    Connection credentials are stored in your web browser.

I'm a .NET developer and tried to download the sample Hello Word from 4.1. Get started - Chapter 4. Drivers.

However, below exceptions were thrown. Please help.

Neo4j.Driver.V1.ServiceUnavailableException
HResult=0x80131500
Message=Failed after retried for 5 times in 30000ms. Make sure that your database is online and retry again.
Source=Neo4j.Driver
StackTrace:
at Neo4j.Driver.Internal.ExponentialBackoffRetryLogic.Retry[T](Func1 runTxFunc) at Neo4j.Driver.Internal.Session.<>c__DisplayClass41_01.b__0()
at Neo4j.Driver.Internal.Logging.DriverLoggerUtil.TryExecute[T](IDriverLogger logger, Func1 func, String message) at Neo4j.Driver.Internal.Session.RunTransaction[T](AccessMode mode, Func2 work, TransactionConfig txConfig)
at Neo4j.Driver.Internal.Session.WriteTransaction[T](Func2 work, TransactionConfig txConfig) at Neo4j.Driver.Internal.Session.WriteTransaction[T](Func2 work)
at HelloWorldExample.PrintGreeting(String message) in D:\AI\neo4j\TestNeo4j\ConsoleApp1\Program.cs:line 21
at HelloWorldExample.Main() in D:\AI\neo4j\TestNeo4j\ConsoleApp1\Program.cs:line 42

Inner Exception 1:
AggregateException: One or more errors occurred.

Inner Exception 2:
ServiceUnavailableException: Connection with the server breaks due to SecurityException: Failed to establish encrypted connection with server bolt://localhost:7687/.

Inner Exception 3:
SecurityException: Failed to establish encrypted connection with server bolt://localhost:7687/.

Inner Exception 4:
IOException: Authentication failed because the remote party has closed the transport stream.

0 REPLIES 0