Invalid value for the security state encoder type. The type '{0}' does not derive from the appropriate base class '{1}'. ...