Hi All,

Server node is started & cache is created with configuration like

var cacheCfg = new CacheConfiguration
                {
                    Name = "cars",
                    CacheStoreFactory = new AdoNetCacheStoreFactory(),
                    KeepBinaryInStore = true,
                    ReadThrough = true,
                    WriteThrough = true
                };

                ICache<int, IBinaryObject> cars =
ignite.GetOrCreateCache<int, object>(cacheCfg).WithKeepBinary<int,
IBinaryObject>();


Now another node with clientmode = true is started and when I access
same cache like

ICache<int, IBinaryObject> carsFromCache = igniteClient.GetCache<int,
object>().WithKeepBinary<int, IBinaryObject>();

This line is throwing IgniteException with message - could not create .Net
cachestore

Question is - while accessing cache like above from client node do I also
need to pass cachestore configuration like below

var cacheCfg = new CacheConfiguration
                {
                    Name = "cars",
                    CacheStoreFactory = new AdoNetCacheStoreFactory(),
                    KeepBinaryInStore = true,
                    ReadThrough = true,
                    WriteThrough = true
                };

ICache<int, IBinaryObject> carsFromCache = igniteClient.GetCache<int,
object>(cacheCfg).WithKeepBinary<int, IBinaryObject>();


Regards,
Sudhir

On Wednesday, November 13, 2019, Sudhir Patil <[email protected]>
wrote:

> Hi All,
>
> I am really struggling with this exception / error message.
>
> I am using same configurations on client & server node but still it is
> giving same error / exception - could not create .Net CacheStore.
>
> Can someone please help / provide what is issue here??
>
> Regards,
> Sudhir
>
> On Wednesday, November 13, 2019, Sudhir Patil <[email protected]>
> wrote:
>
>> Alexandr,
>>
>> Can you share the code u used + configuration ?
>>
>> I am not able to send snippets as  i have to type in and can't send those
>> from my work.
>>
>> On Wednesday, November 13, 2019, Alexandr Shapkin <[email protected]>
>> wrote:
>>
>>> I configured 1 server node with :
>>>
>>>
>>>
>>> Name = "cars",
>>>
>>> CacheStoreFactory = new AdoNetCacheStoreFactory(),
>>>
>>> KeepBinaryInStore = true,
>>>
>>> ReadThrough = true,
>>>
>>> WriteThrough = true
>>>
>>>
>>>
>>> The second one with ClientMode = true just accesses the cache by its
>>> name and performs all operations.
>>>
>>>
>>>
>>> *From: *Sudhir Patil <[email protected]>
>>> *Sent: *Wednesday, November 13, 2019 4:56 PM
>>> *To: *[email protected]
>>> *Subject: *Re: Ignite.Net Read through approach - error : could not
>>> create .Net cachestore
>>>
>>>
>>>
>>> Alexandr,
>>>
>>>
>>>
>>> Ok. But what is type of those 2 nodes ???
>>>
>>> On Wednesday, November 13, 2019, Alexandr Shapkin <[email protected]>
>>> wrote:
>>>
>>> Sudhir,
>>>
>>>
>>>
>>> > Are there any samples for ReadThrough operation done from normal
>>> ignite client node?
>>>
>>>
>>>
>>> I tried the AspNetCachestore example with two nodes and it worked well
>>> for me.
>>>
>>>
>>>
>>> > I can not share snippet now but I will try to type it later...:(
>>>
>>> That’s ok. Feel free to add details whenever you get ready.
>>>
>>>
>>>
>>> *From: *Sudhir Patil <[email protected]>
>>> *Sent: *Wednesday, November 13, 2019 4:30 PM
>>> *To: *[email protected]
>>> *Subject: *Re: Ignite.Net Read through approach - error : could not
>>> create .Net cachestore
>>>
>>>
>>>
>>> Alexandr,
>>>
>>>
>>>
>>> Thanks for details.
>>>
>>>
>>>
>>> I can not share snippet now but I will try to type it later...:(
>>>
>>>
>>>
>>> I am getting cacheexception with message as -
>>> could not create .Net CacheStore.
>>>
>>>
>>>
>>> From ignite samples i rendered same sample code e.g. AspNetCachestore
>>> one. This works when used with thin client but when I use it with normal
>>> ignite node with ClientMode =true, it is throwing above exception with that
>>> message when I call GetCache function call from client node for a key from
>>> cache created in server node.
>>>
>>>
>>>
>>> Are there any samples for ReadThrough operation done from normal ignite
>>> client node?
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>> Sudhir
>>> On Wednesday, November 13, 2019, Alexandr Shapkin <[email protected]>
>>> wrote:
>>>
>>> Sudhir,
>>>
>>>
>>>
>>> What exception are you getting?
>>>
>>> Can you share a full stacktrace/code snippet?
>>>
>>> Most likely you have an issue with the underlying DB configuration.
>>>
>>>
>>>
>>> You could have a look at Pavel’s examples for 3rd party persistence:
>>>
>>> https://github.com/ptupitsyn/ignite-net-examples
>>>
>>>
>>>
>>> *From: *Sudhir Patil <[email protected]>
>>> *Sent: *Wednesday, November 13, 2019 3:07 PM
>>> *To: *[email protected]
>>> *Subject: *Re: Ignite.Net Read through approach - error : could not
>>> create .Net cachestore
>>>
>>>
>>>
>>> I am extremely sorry for typing mistakes.
>>>
>>>
>>>
>>> Here is correct details
>>>
>>>
>>>
>>> Hi All,
>>>
>>>
>>>
>>> I have started 2 nodes -
>>>
>>> 1) Server node - using Ignition.Start. On Server node cache is created
>>> with ReadThrough = true with CacheStoreFactory value set to property
>>> implementation.
>>>
>>>
>>>
>>> 2) Client one - using Ignition.Start (for client with
>>> Ignition.ClientMode = true).
>>>
>>>
>>>
>>> With this when i do 1st GetCache call for same cache from client mode,
>>> hoping it will do a readthrough operation connecting db & filling the data
>>> in cache, i am getting error as - could not create .Net CacheStore.
>>>
>>>
>>>
>>> Can you please help me on this?
>>>
>>>
>>> On Wednesday, November 13, 2019, Sudhir Patil <[email protected]>
>>> wrote:
>>>
>>> Hi All,
>>>
>>>
>>>
>>> I have started 2 nodes -
>>>
>>> 1) Server node - using Ignition.Start. On Server node cache is created
>>> with ReadThrough = true with CacheStoreFactory value set to property
>>> implementation.
>>>
>>>
>>>
>>> 2) Client one - using Ignition.Start (for client with
>>> Ignition.ClientMode = true).
>>>
>>>
>>>
>>> With this when i do 1st GetCache call, on same cache from client mode,
>>> hoping it will do a readthrough operation connecting db & filling the data
>>> in cache, i am setting terrorist as could not create .Net CacheStore.
>>>
>>>
>>>
>>> Can you please help me on this?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Sudhir Patil,
>>> +91 9881095647.
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Sudhir Patil,
>>> +91 9881095647.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Sudhir Patil,
>>> +91 9881095647.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Sudhir Patil,
>>> +91 9881095647.
>>>
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Sudhir Patil,
>> +91 9881095647.
>>
>
>
> --
> Thanks & Regards,
> Sudhir Patil,
> +91 9881095647.
>


-- 
Thanks & Regards,
Sudhir Patil,
+91 9881095647.

Reply via email to