Object Reference when setting MaxNumberOfCachedRequests (3782)

42 views
Skip to first unread message

Patrik Potocki

unread,
Aug 31, 2015, 4:05:39 AM8/31/15
to RavenDB - 2nd generation document database
Hello,

I'm getting an object ref when setting MaxNumberOfCachedRequests.    

       var docStore = new DocumentStore
                {
                    ConnectionStringName = url,
                };

                docStore.MaxNumberOfCachedRequests = 500;

Oren Eini (Ayende Rahien)

unread,
Aug 31, 2015, 7:20:50 AM8/31/15
to ravendb
What happens if you do that after the initialize call?
What is the full stack trace?

Hibernating Rhinos Ltd  

Oren Eini l CEO Mobile: + 972-52-548-6969

Office: +972-4-622-7811 l Fax: +972-153-4-622-7811

 


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patrik Potocki

unread,
Sep 1, 2015, 2:39:55 AM9/1/15
to RavenDB - 2nd generation document database
Stacktrace:
   at Raven.Client.Document.DocumentStore.set_MaxNumberOfCachedRequests(Int32 value) in c:\Builds\RavenDB-3.0-Unstable\Raven.Client.Lightweight\Document\DocumentStore.cs:line 820
   at Rccl.Raven.RavenDocumentStores.<>c__DisplayClass2_0.<CreateDocumentStore>b__0() in C:\projekt\RCCL\Rccl\Raven\RavenDocumentStores.cs:line 36
   at System.Lazy`1.CreateValue()

and yes it worked when moving it after the init call.

Oren Eini (Ayende Rahien)

unread,
Sep 1, 2015, 8:29:47 AM9/1/15
to ravendb
Reply all
Reply to author
Forward
0 new messages