title: java.lang.IllegalStateException in .NET?
body: <p>Description for <a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html" rel="noreferrer"><code>java.lang.IllegalStateException</code></a> from the Java docs:</p>
  
  <blockquote>
    <p>Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation.</p>
  </blockquote>
  
  <p>Is there an equivalent for <a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalStateException.html" rel="noreferrer"><code>IllegalStateException</code></a> in the .NET-Framework?</p>