The type 'EncryptionLevel' is defined in an assembly that is not referenced. You must add a reference to assembly 'Neo4j.Driver

Hello,
.NET 4.7 MVC with AngularJS.

var _graphClient = new Neo4jClient.BoltGraphClient(LmsNeoUri, Lmsusername, Lmspassword)
{ DefaultDatabase=neo4jDatabaseName };

In this line I am getting error

Error CS0012	The type 'EncryptionLevel' is defined in an assembly that is not referenced.
You must add a reference to assembly 'Neo4j.Driver, Version=4.3.67.1, Culture=neutral, PublicKeyToken=b646bc66d277ac07'.

I added Neio4j driver from Nuget package as well. Its still showing same error.
Any idea?

I have also tried - but this also giving same error

_graphClient = new BoltGraphClient(LmsNeoUri, Lmsusername, Lmspassword, EncryptionLevel.None)
{ DefaultDatabase=neo4jDatabaseName };

Thanks in advance

Hello,

Please try referencing the Neo4j.Driver.Signed version of the official driver, I suspect that's the problem.

All the best

Charlotte

I have similar problem but already referenced signed driver.

My solution was to run "Update-Package -reinstall Neo4j.Driver.Signed".