16May, 2021
In our latest project I have been storing an instance of an object in the User's session, which can be recycled on each page load and cuts down load times but 60%. This simple model, which of course must be decorated with [Serializable] or you'll get the error “Type 'xxx' in Assembly 'xxx, Version=...' is not marked as serializable”, has a bunch of reference data pertaining to the User's location. So, when I added some additional data which changed the class, Redis didn't like that. Not. One. Bit.
Read More

![Handling “Unable to load type [your-model] required for deserialization” when using Redis to store custom objects in User sessions with Azure.](/images/blog-system/3dc18b5c15345e5972a3cd4bc718c1cf-hero/3dc18b5c15345e5972a3cd4bc718c1cf.jpg)
