cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

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

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".

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online