尝试使用 C# 连接 Couchbase 服务器时出现内部异常 returns

Inner exception returns when trying connect with Couchbase server using C#

系统使用 Couchbase.netClient 连接到 Couchbase 服务器时发生错误。 returns 错误如下

InnerException: Couchbase.Configuration.ConfigException
       HResult=-2146233088
       Message= is this a Memcached bucket?
       Source=Couchbase.NetClient
       StackTrace:
            at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName, String password)
            at Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password)

在 couchbase 中,桶类型是 Memcached。然而它 returns 像 "is this a Memcached bucket?" 这样的错误。下面显示了 App.config 文件和代码以获得此问题的清晰图像。

App.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="couchbaseClients">
      <section name="couchbase"
               type="Couchbase.Configuration.Client.Providers.CouchbaseClientSection, Couchbase.NetClient"/>
    </sectionGroup>
  </configSections>
  <couchbaseClients>
    <couchbase useSsl="false">
      <servers>
        <add uri="http://127.0.0.1:8091/pools"></add>
      </servers>
      <buckets>
        <add name="testing" useSsl="false" password="12345">
          <connectionPool name="custom" maxSize="10" minSize="5" sendTimeout="12000"></connectionPool>
        </add>
      </buckets>
    </couchbase>
  </couchbaseClients>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
  </startup>
</configuration>

C#代码

using (var cluster = new Cluster("couchbaseClients/couchbase"))
            {
                using (var bucket = cluster.OpenBucket("testing", "12345"))
                {
                    //use the bucket here
                }
            }

这是版本问题,当 Couchbase dll 更新到最新时,它工作正常