Gremlin.net.dll 找不到

问题描述 投票:0回答:0

从 Gremlin.net 3.6.1 移动到 3.6.2 时,我得到一个指向“rootOfProject”/Gremlin.net.dll 的 FileNotFound 异常 这是在实例化 GremlinClient 时在我的 startup.cs 中发生的

services.AddSingleton<GremlinClient>(s =>
            {
                GremlinServer server = new GremlinServer(hostname: "vsm-dev-graph.gremlin.cosmos.azure.com", port: 443, enableSsl: true, username: $"/dbs/Flyt/colls/Graph", password: this.Configuration["Gremlinq:CosmosDb:AuthKey"]);
                var connectionPoolSettings = new ConnectionPoolSettings
                {
                    MaxInProcessPerConnection = 32,
                    PoolSize = 4,
                    ReconnectionAttempts = 4,
                    ReconnectionBaseDelay = TimeSpan.FromSeconds(1)
                };

                var socket = new Action<ClientWebSocketOptions>(o =>
                {
                    o.KeepAliveInterval = TimeSpan.FromSeconds(10);
                });
            return new GremlinClient(server, new GraphSON2MessageSerializer(), connectionPoolSettings, socket);

我尝试将 Gremlin.net.dll 复制到项目的根文件夹。然后它起作用了。 我觉得很奇怪,代码突然在根目录而不是 in 文件夹中寻找 .dll

asp.net gremlin gremlinnet
© www.soinside.com 2019 - 2024. All rights reserved.