C# 在Neo4jConnection期间无法访问Newtonsoft.Json.Linq.JValue上的子值
我已设置neo4j连接,但不工作,而是抛出错误: 无法访问Newtonsoft.Json.Linq.JValue上的子值 这是Neo4j ninject模块文件:C# 在Neo4jConnection期间无法访问Newtonsoft.Json.Linq.JValue上的子值,c#,json,asp.net-mvc,linq,neo4jclient,C#,Json,Asp.net Mvc,Linq,Neo4jclient,我已设置neo4j连接,但不工作,而是抛出错误: 无法访问Newtonsoft.Json.Linq.JValue上的子值 这是Neo4j ninject模块文件: public class Neo4jModule : NinjectModule { /// <summary>Loads the module into the kernel.</summary> public override void Load() { Bind&l
public class Neo4jModule : NinjectModule
{
/// <summary>Loads the module into the kernel.</summary>
public override void Load()
{
Bind<IGraphClient>().ToMethod(InitNeo4JClient).InSingletonScope();
}
private static IGraphClient InitNeo4JClient(IContext context)
{
var neo4JUri = new Uri("http://www.example.com");
var graphClient = new GraphClient(neo4JUri, "username", "password");
graphClient.Connect();
return graphClient;
}
}
我还调试了我的应用程序,并意识到graphclient对象在创建时会出现许多错误。有人能帮我吗?整个系统没有问题。错误来自我的uri到GraphClient对象。例如,错误的url。正确且被接受的url为
这就是连接工作的全部内容。整个系统没有故障。错误来自我的uri到GraphClient对象。例如,错误的url。正确且被接受的url为 这就是连接工作的全部内容
private static void RegisterServices(IKernel kernel)
{
kernel.Load<Neo4jModule>();
}
graphClient.Connect();
var neo4JUri = new Uri("http://www.example.com/db/data");