Closed Thypari closed 2 years ago
Hi @Thypari.
I can recreate the issue, I'll look into it, and get back to you soon.
thanks
Hi @Thypari.
I managed to recreate the issue by setting my .NET framework to 4.7.1. doing a build then going to 4.7.2 then doing a build, when I did that I got the same error as yourself. while on 4.7.2 I did a solution clean, restore and build it went back to working, could you try that?
while on 4.7.2 I did a solution clean, restore and build it went back to working, could you try that?
I tried cleaning, restore and build. Unfortunately I get the same error. I will try to delete all the bin
folders and .vs
folders next. Thank you for your help, I'll let you know if this will resolve my issue.
EDIT: Can you share some information with me? When you were able to solve the issue, did the System.Net.Sockets.dll exist in your debug folder after building?
I failed to solve the issue unfortunately: I tried:
Here is some additional information. I am building x64 explicitly. I am using VS 2019 Pro.
Any ideas what I can try next?
EDIT: Can you share some information with me? When you were able to solve the issue, did the System.Net.Sockets.dll exist in your debug folder after building? I've found some bug reports of VS 2019 Pro with the exact same issue where .standard dlls were not correctly copied to the debug folder.
Okay I was finally able to fix it. In one of my 200 projects in this solution was a binding redirect for system.net.sockets to version 4.1.1.0. No idea how this was introduced... After removing it, I could connect to the db!
@Thypari I'm glad to hear, binding redirects were going to be my next suggestion.
Hey,
I migrated from neo4j 3.5.20 to 4.4.6. The db itself runs fine and is accessible via browser but when trying to connect with the neo4j dotnet driver I get the following exception:
I am using
.net framework 4.7.2
and the latest neo4j dotnet driver nuget package 4.4.0. This is the connection code:This is the part which I don't understand:
System.Net.Sockets should be provided by .Net Framework? Nonetheless, I couldn't even find anything about a 4.1.1.0 version. It also tries to load 4.0.0.0, but still fails. It seems .Net Frameowrk 4.7.2 uses System.Net.Sockets 4.2.0.0:
https://i.imgur.com/NZ5rZ2Z.png
EDIT: .net standard 2.0 seems to use System.Net.Sockets 4.1.2.0?