Open tnight opened 6 years ago
Hi @tnight ,
Are all the dependent assemblies of the write through provider you've configured placed in the "C:\Program Files\NCache\Deploy" folder? This includes any domain objects you've used in the Write through provider?
Hello,
I have been working with the open source NCache for about a week and so far I like it a lot! One of the features I want to use is the write-behind provider. I wrote a simple one to test with, but today I have run into a roadblock. The
WriteOperation
array that is passed to myWriteToDataSource
method has a strangeValue
.This code below prints
System.Byte[]
as the type of the cache value. Also, the bytes within the byte array look like they are my object as it would appear if serialized by theBinaryFormatter
but deserializing fails with an error:Binary stream '0' does not contain a valid BinaryHeader
.All the examples I can find are showing that I can just cast the
ProviderCacheItem.Value
to the type of object I wrote into the cache. Here is one example: http://www.alachisoft.com/resources/docs/ncache/prog-guide/configure-write-through-provider.htmlThanks for any help that anyone can offer!