java.lang.IllegalStateException in .NET? January 14, 2023 by Tarik System.InvalidOperationException The exception that is thrown when a method call is invalid for the object’s current state.