System Runtime Serialization SerializationException

I know this is because of old license. Just posting if you need to mark this type serializable. See exception below.

System.Runtime.Serialization.SerializationException: 'Type 'ServiceStack.LicenseException' in assembly 'ServiceStack.Text, Version=5.0.0.0, Culture=neutral, PublicKeyToken=02c12cbda47e6587' is not marked as serializable.'

It shouldn’t be, what are you doing that’s causing this Exception?

I didn’t update the license to new one that’s why I was getting the exception.