I can successfully open my database from the Neo4j Desktop and from the web browser at http://localhost:7474/.
However, when I attempt to navigate to the URL below, after the login prompt, the response is
This localhost page can’t be found
No webpage was found for the web address: http://localhost:7474/db/data/
HTTP ERROR 404
The error first occurred when the sample code Neo4jDotNetDemo in the WebApiConfig,cs tried to create a new GrpahClient.
Thoughts on resolving this issue?
If you're using neo4j 4.x the endpoints have changed, the rest api is replaced by the http api.
See: Introduction - HTTP API
I appreciate your response but after reading the doc, I'm unsure how that helps resolve my issue.
The Neo4jDotNetDemo I downloaded from the neo4j website is throwing the exception in WebApiConfig.cs on the Connect statement:
//Use an IoC container and register as a Singleton
var url = ConfigurationManager.AppSettings["GraphDBUrl"];
var user = ConfigurationManager.AppSettings["GraphDBUser"];
var password = ConfigurationManager.AppSettings["GraphDBPassword"];
var client = new GraphClient(new Uri(url), user, password);
The web.config contains the url: http://localhost:7687/db/data
If the URL has changed, what should it be?
and perhaps, someone should modify\y the demo code.
Are you referring to the project
This seems to be pretty old project and might work with Neo4j 3.x and uses HTTP endpoints.
Better option would be to use this project
This client uses bolt protocol and preferred communication method for clients.
Thank you for your response and suggestion.