This exception is raised when you are using a commercial license and you didn’t setup your subscription details, likely a call to .SetSubscriptionStorageProvider was not made when setting up your middleware or your implementation of SubscriptionStorageProvider is not working as expected.
Please check this post for a general overview about how to setup your new subscription..