Ad Space — Top Banner

C# Error Codes

C# errors explained in plain English. Find your error below.

Error Codes

ArgumentNullException C# Programming Language ArgumentNullException means you passed null into a method that requires an … ArgumentOutOfRangeException C# Programming Language ArgumentOutOfRangeException means a value you passed to a method was outside the … CS0019 C# Programming Language CS0019 means you used a mathematical, comparison, or logical operator on two … CS0029 C# Programming Language CS0029 means you tried to put a value of one type into a variable of a different … CS0051 C# Programming Language CS0051 means you have inconsistent accessibility — a public method or property … CS0103 C# Programming Language CS0103 means the compiler cannot find a name you used — a variable, method, … CS0120 C# Programming Language CS0120 means you tried to call a method or access a property that belongs to an … CS0162 C# Programming Language CS0162 is a compiler warning that tells you some of your code can never execute. … CS0168 C# Programming Language CS0168 is a compiler warning that tells you a variable was declared but its … CS0234 C# Programming Language CS0234 means C# cannot find a type or namespace inside a namespace you … CS0246 C# Programming Language CS0246 means the compiler cannot find a type — a class, interface, enum, struct, … CS0428 C# Programming Language CS0428 means you wrote a method name where a value was expected, but forgot to … CS0535 C# Programming Language CS0535 means your class says it implements an interface but is missing one or … CS0579 C# Programming Language CS0579 means you applied the same attribute to a class, method, or property more … CS1061 C# Programming Language CS1061 means you tried to access a method, property, or field on an object, but … CS1503 C# Programming Language CS1503 means you called a method and passed an argument of the wrong type. The … DivideByZeroException C# Programming Language DivideByZeroException is thrown when your code tries to divide a number by zero. … FileNotFoundException C# Programming Language FileNotFoundException means your code tried to open or read a file, but the file … FormatException C# Programming Language FormatException means you tried to convert a value — usually a string — into … IndexOutOfRangeException C# Programming Language IndexOutOfRangeException means you tried to access a slot in an array that does … InvalidOperationException C# Programming Language InvalidOperationException means you called a method or performed an action that … NotImplementedException C# Programming Language NotImplementedException is thrown when a method has been defined (has a … NullReferenceException C# Programming Language NullReferenceException means your code tried to use an object that has no value … OutOfMemoryException C# Programming Language OutOfMemoryException means your program tried to allocate more memory than was … StackOverflowException C# Programming Language StackOverflowException means your program ran out of call stack space. This … UnauthorizedAccessException C# Programming Language UnauthorizedAccessException means your program tried to access a file, folder, …