InvalidOperationException maybe?
The exception that is thrown when a method call is invalid for the object’s current state.
More Related Contents:
- Is there a difference between “throw” and “throw ex”?
- WPF global exception handler [duplicate]
- Exception messages in English?
- How using try catch for exception handling is best practice
- How to rethrow InnerException without losing stack trace in C#?
- What is the proper way to rethrow an exception in C#? [duplicate]
- TAP global exception handler
- Puzzling Enumerable.Cast InvalidCastException
- Can you catch a native exception in C# code?
- Does a locked object stay locked if an exception occurs inside it?
- Avoiding null reference exceptions
- User Activity Logging, Telemetry (and Variables in Global Exception Handlers)
- Active Directory COM Exception – An operations error occurred (0x80072020)
- How to avoid a System.Runtime.InteropServices.COMException?
- InvalidProgramException / Common Language Runtime detected an invalid program
- Image.FromStream() method returns Invalid Argument exception
- Read Big TXT File, Out of Memory Exception
- What is ApplicationException for in .NET?
- How to prevent an exception in a background thread from terminating an application?
- How to serialize an Exception object in C#?
- More Elegant Exception Handling Than Multiple Catch Blocks? [duplicate]
- ArgumentOutOfRangeException on initialized List
- How can I handle forms authentication timeout exceptions in ASP.NET?
- How to check for valid xml in string input before calling .LoadXml()
- In a .net Exception how to get a stacktrace with argument values
- How do I determine the HResult for a System.IO.IOException?
- Catch Application Exceptions in a Windows Forms Application
- Which exceptions shouldn’t I catch?
- The ObjectContext instance has been disposed and can no longer be used for operations that require a connection [duplicate]
- Could not load file or assembly ‘System.Windows.Interactivity’ [duplicate]