Hi,
We are using MemCache for caching in our ASP.NET Website for performance
improvements.



We use WCF Service at backend and our website and other Silverlight
applications call these WCF services.



Now, whenever a service call is made, service retrieves data from the
database and sets it in the MemCache server.



At client (application) end, before making service call, we first want to
check the memCache server, if it already has that particular object, but
unfortunately, this is not happening, we always get NULL if we want to check
data from the cache server.


On further digging it down, we came to know that when MemCache de-serialize
our object at client end (website), it doesn’t find the DLL of the service
and throws the exception at de-serialization and returns NULL object.

When i put the WCF service DLL in Bin folder of my website (that i don't
want to do) than the de-serialzation working fine but i stuck into another
problem when i tried cast the object into WCF service reference object, it
gives error of invalide cast because the deserialized object (deserialize by
service DLL) cannot converted into service reference object due to different
namespace.

 My question is, does .NET framework has any support or workaround by which
we can de-serialize byte array into real objects without having the DLL and
using only the service references.

Thanks
Adeel

Reply via email to