Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-2827

.Net example does not work

    XMLWordPrintable

Details

    Description

      This is very discouraging....

      var bucket = ClusterHelper.GetBucket(bucketName);
      fails for bucket name = travel-sample.

      [AuthenticationException: Authentication failed for bucket 'travel-sample']
      Couchbase.IO.Services.PooledIOService.Authenticate(IConnection connection) +236
      Couchbase.IO.Services.PooledIOService.Execute(IOperation`1 operation) +128

      [AggregateException: One or more errors occurred.]
      Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig(String bucketName, String password) +1646
      Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials) +534

      [AggregateException: Could not bootstrap - check inner exceptions for details.]
      Couchbase.Core.ClusterController.CreateBucket(String bucketName, String password, IClusterCredentials credentials) +1452
      Couchbase.Core.ClusterController.CreateBucket(String bucketName, IClusterCredentials credentials) +140
      Couchbase.Cluster.OpenBucket(String bucketname) +33
      Couchbase.<>c.<GetBucket>b__10_0(String name) +95
      System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +72
      Couchbase.ClusterHelper.GetBucket(String bucketName) +117
      try_cb_dotnet.CouchbaseConfig.EnsureIndexes(String bucketName, String username, String password) in C:\Repos\CouchbaseExamples\SampleApplication\try-cb-dotnet\src\try-cb-dotnet\App_Start\CouchbaseConfig.cs:39
      try_cb_dotnet.CouchbaseConfig.Register() in C:\Repos\CouchbaseExamples\SampleApplication\try-cb-dotnet\src\try-cb-dotnet\App_Start\CouchbaseConfig.cs:34
      try_cb_dotnet.MvcApplication.Application_Start() in C:\Repos\CouchbaseExamples\SampleApplication\try-cb-dotnet\src\try-cb-dotnet\Global.asax.cs:9

      [HttpException (0x80004005): Could not bootstrap - check inner exceptions for details.]
      System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +10104513
      System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
      System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +173
      System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
      System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

      [HttpException (0x80004005): Could not bootstrap - check inner exceptions for details.]
      System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10085804
      System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
      System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

      user is PosLite with password 'password'. This user has full access to all buckets. It is specified in web.config.

      650.619.3899

      Reporter: Jeffrey Roughgarden
      E-mail: jroughgarden@stanfordalumni.org

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              maria.shodunke Maria Shodunke (Inactive)
              docsite-collector Docs Site Collector
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty