Описание тега invalidoperationexception
The exception that is thrown when a method call is invalid for the object's current state.
The exception that is thrown when a method call is invalid for the object's current state.
More information is available on Docs.