cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

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

abhishinde01
Node Clone

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

1 ACCEPTED SOLUTION

charlotte_skard
Graph Buddy

Hello,

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

All the best

Charlotte

View solution in original post

2 REPLIES 2

charlotte_skard
Graph Buddy

Hello,

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

All the best

Charlotte

DarthSonic
Node

I have similar problem but already referenced signed driver.

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