Visual Basic Compiler Messages
This section contains the Visual Basic error messages that occur at compile time.
'#Else' must be preceded by a matching '#If' or '#ElseIf'
'#ElseIf' cannot follow '#Else' as part of an '#If' block
'#ElseIf' must be preceded by a matching '#If' or '#ElseIf'
'#ElseIf', '#Else', or '#End If' must be preceded by a matching '#If'
'#End ExternalSource' must be preceded by a matching '#ExternalSource'
'#End Region' must be preceded by a matching '#Region'
'#ExternalSource' directives cannot be nested
'#ExternalSource' statement must end with a matching '#End ExternalSource'
'#If' block must end with a matching '#End If'
'#Region' and '#End Region' statements are not valid within method bodies
'#Region' statement must end with a matching '#End Region'
'<argumentname>' is not a parameter of '<methoddeclaration>'
'<assemblyname>' is an assembly and cannot be referenced as a module
'<attribute>' cannot be applied because the format of the GUID '<number>' is not correct
'<attributename>' cannot be applied more than once to an assembly
'<constructor>' in designer-generated type '<type>' should call InitializeComponent method
'<declaration1>' cannot override '<declaration2>' because it is declared 'NotOverridable'
'<declaration1>' cannot override '<declaration2>' because it is declared 'Shared'
'<declaration1>' cannot override '<declaration2>' because they have different access levels
'<elementname>' cannot be declared 'Partial' because partial methods must be Subs
'<elementname>' is not a method parameter
'<elementname>' is not a parameter of extension method '<methodname>' defined in '<typename>'
'<elementname>' is obsolete (Visual Basic Error)
'<elementname>' is obsolete (Visual Basic Warning)
'<elementname>' is obsolete: '<errormessage>'
'<emptyconstant>' is not declared
<error>: '<classname1>' inherits from '<classname2>'
<error>: '<constructorname1>' calls '<constructorname2>'
<error>: '<structurename1>' contains '<structurename2>'
'<eventname>' is an event, and cannot be called directly
'<eventname>' is not an event of '<containername>'
'<expression>' cannot be used as a type constraint
'<filename>' cannot be referenced because it is not an assembly
'<functionname>' is not declared (Smart Device/Visual Basic Compiler Error)
'<functionname>' is not declared (Visual Basic Error)
'<implementsclause>' cannot implement '<typename>' because '<typename>' is a reserved name
'<keyword>' accessor of '<propertyname>' is obsolete (Visual Basic Error)
'<keyword>' accessor of '<propertyname>' is obsolete (Visual Basic Warning)
'<keyword>' accessor of '<propertyname>' is obsolete: '<errormessage>' (Visual Basic Error)
'<keyword>' accessor of '<propertyname>' is obsolete: '<errormessage>' (Visual Basic Warning)
'<keyword>' is not valid within a Module
'<keyword>' is not valid within a structure
'<keyword>' is valid only within a class
'<keyword>' is valid only within an instance method
'<mathfunction1>' is not declared
'<member>' conflicts with the reserved member by this name that is implicitly declared in all enums
'<member>' is already declared in this structure
'<membername>' cannot be declared 'Shadows' outside of a class, structure, or interface
'<membername>' exists in multiple base interfaces
'<membername> has the same name as a type parameter
'<membername>' is not a member of '<contextname>'; it does not exist in the current context
'<membername>' is not declared
'<membername>' is not declared or the module containing it is not loaded in the debugging session
'<membername>' is obsolete: '<errormessage>'
'<method>' is not accessible in this context because it is '<modifier>'
'<method1>' and '<method2>' cannot overload each other because they differ only by return types
'<method1>' cannot override '<method2>' because it expands the access of the base method
'<method1>' cannot override '<method2>' because it is a 'Declare' statement
'<method1>' cannot override '<method2>' because they differ by optional parameters
'<method1>' cannot override '<method2>' because they differ by their return types
'<methodname>' cannot be implemented more than once
'<methodname>' cannot override a method that has been shadowed
'<methodname>' cannot shadow a method declared 'MustOverride'
'<methodname>' has multiple definitions with identical signatures
'<methodname>' is not accessible in this context because the return type is not accessible
'<modifier>' is not valid on a Declare
'<modifier>' is not valid on a Delegate declaration
'<modifier>' is not valid on a local constant declaration
'<modifier>' is not valid on a local variable declaration
'<modifier>' is not valid on a method declaration
'<modifier>' is not valid on an event declaration
'<modifier>' is not valid on an Interface declaration
'<modulename>' is a module and cannot be referenced as an assembly
'<name>' cannot expose type <type1> in <specifier> <type2> '<typename>' through <name>
'<name>' cannot refer to itself through its default instance, use 'Me' instead
'<name>' is already declared as '<declaration>' in this <declarationspace>
'<name>' is already declared as a parameter of this method
'<name>' is ambiguous between declarations in Modules '<modulename1>' and '<modulename2>'
'<name>' is ambiguous in the application objects '<list>'
'<name>' is ambiguous in the namespace '<namespacename>'
'<name>' is not a member of '<classname>'
'<name>', necessary for compiling this construct, cannot be found
'<name1>' conflicts with a <type> by the same name defined in '<name2>'
'<name1>' for the Imports '<name2>' does not refer to a Namespace, Class, Structure, Enum or Module
'<name1>' is ambiguous, imported from the namespaces or types '<name2>'
'<namespace>' is not a valid name and cannot be used as the root namespace name
'<namespacename>' is ambiguous
'<nullconstant>' is not declared
'<parametername>' is already declared as a type parameter of this method
'<procedurename>' has a return type that is not supported or parameter types that are not supported
'<procedurename>' has no parameters and its return type cannot be indexed
'<procedurename1>' cannot override '<procedurename2>' because it is not accessible in this context
<Property> parameters cannot be declared 'ByRef'
'<property1>' and '<property2>' cannot overload each other because only one is declared 'Default'
'<propertyname>' cannot be exposed to COM as a property 'Let'
'<propertyname1>' cannot override '<propertyname2>' because they differ by 'ReadOnly' or 'WriteOnly'
'<qualifiedmethod>' is not accessible in this context because it is '<modifier>'
'<specifier>' is not valid on a constant declaration
'<specifier>' is not valid on a member variable declaration
'<specifier>' is not valid on a Structure declaration
'<specifier>' is not valid on a WithEvents declaration
'<specifier>' is not valid on an Enum declaration
'<specifier>' is not valid on an interface event declaration
'<specifier>' is not valid on an interface method declaration
'<specifier>' is not valid on an interface property declaration
'<specifier1>' and '<specifier2>' cannot be combined
'<statementname>' statement requires an array
<type> '<typename>' shadows an overridable method in the base class
'<type>' cannot be inherited more than once
<type> parameters cannot be declared 'Optional'
<type> parameters cannot be declared 'ParamArray'
<type1> '<membername>' shadows an overloadable member declared in the base <type2> '<classname>'
<type1> '<typename>' and <type2> '<typename>' conflict in <namespace> '<namespacename>'
'<type1>' cannot override <type2> because it is not declared 'Overridable'
<type1>'<typename>' must implement '<membername>' for interface '<interfacename>'
<type1>'<typename>' must implement '<methodname>' for interface '<interfacename>'
'<typename>' cannot be used as an attribute because it does not inherit from 'System.Attribute'
'<typename>' cannot be used as an attribute because it is declared 'MustInherit'
'<typename>' cannot be used as an attribute because it is not a class
'<typename>' has the same name as another type exposed in a 'My' group
'<typename>' in assembly '<assemblyname>' has been forwarded to itself and so is an unsupported type
'<typename>' is a class type and cannot be used as an expression
'<typename>' is a delegate type
'<typename>' is a generic type and requires type arguments
'<typename>' is a namespace and cannot be used as an expression
'<typename>' is a structure type and cannot be used as an expression
'<typename>' is a type and cannot be used as an expression
'<typename>' is a type in '<containername>' and cannot be used as an expression
'<typename>' is an Enum type and cannot be used as an expression
'<typename>' is an interface type and cannot be used as an expression
'<typename>' is an unsupported type
'<typename>' must be declared 'MustInherit' because it contains methods declared 'MustOverride'
'<typename>' values cannot be converted to 'Char'
'<typename1>' cannot be converted to '<typename2>'
'<variablename>' is not a local variable or parameter, and so cannot be used as a 'Catch' variable
<Variablename>' will not be inferred because it is a static local variable
'=' expected (Let or Set assignment)
'=' expected (object initializer)
A nullable type cannot be inferred for variable '<variablename>'
Access modifier '<accessmodifier>' is not valid
Access modifier can only be applied to either 'Get' or Set', but not both
Access of shared member through an instance; qualifying expression will not be evaluated
'AddHandler' and 'RemoveHandler' method parameters cannot be declared 'ByRef'
'AddHandler' and 'RemoveHandler' methods must have exactly one parameter
'AddHandler' declaration must end with a matching 'End AddHandler'
'AddHandler' definition missing for event '<eventname>'
'AddHandler' is already declared
'AddHandler', 'RemoveHandler' and 'RaiseEvent' method parameters cannot be declared '<modifier>'
'AddressOf' cannot be applied to 'methodname' because 'methodname' is a partial method
'AddressOf' expressions are not valid in debug windows
'AddressOf' expressions are not valid in the first expression of a 'Select Case' statement
'AddressOf' operand must be the name of a method (without parentheses)
Aggregate function name cannot be used with a type character
Alias '<namespacename>' is already declared
All parameters must be explicitly typed if any are
An embedded expression may not be used here
Anonymous type initializers are not valid in debug windows
Anonymous type member name can be inferred only from a simple or qualified name with no arguments
Anonymous type member name must be preceded by a period
Anonymous type member or property '<propertyname>' is already declared
Anonymous type must contain at least one member
Argument matching parameter '<parametername>' narrows from '<type1>' to '<type2>'
Argument matching parameter '<parametername>' narrows to '<typename>'
Argument not specified for parameter '<parametername>'
Argument not specified for parameter '<parametername>' of '<methodname>'
Arguments cannot be passed to a 'New' used on a type parameter
Array bounds cannot appear in type specifiers
Array declarations cannot specify lower bounds
Array declared as for loop control variable cannot be declared with an initial size
Array dimensions cannot have a negative size
Array exceeds the limit of 32 dimensions
Array initializer cannot be specified for a non constant dimension; use the empty initializer '{}'
Array initializer has <number> too many elements
Array initializer has too few dimensions
Array initializer has too many dimensions
Array initializer is missing <number> elements
Array initializers are valid only for arrays, but the type of '<variablename>' is '<typename>'
Array lower bounds can be only '0'
Array modifiers cannot be specified on both a variable and its type
Array modifiers cannot be specified on lambda expression parameters name, only on its type
Array subscript expression missing
Arrays cannot be declared with 'New'
Arrays declared as structure members cannot be declared with an initial size
Arrays of type 'System.Void' are not allowed in this expression
Arrays used as attribute arguments are required to explicitly specify values for all elements
'As Any' is not supported in 'Declare' statements
Assembly '<assemblyname>' cannot be created because its path is longer than 259 characters
Assembly attribute '<attributename>' is not valid: <error>
Assembly or Module attribute statements must precede any declarations in a file
'Assembly' or 'Module' expected
At least one parameter type of this binary operator must be the containing type '<typename>'
Attribute '<attributename>' cannot be applied multiple times
Attribute '<attributename>' cannot be applied to a method with optional parameters
Attribute '<attributename>' cannot be applied to a module
Attribute '<attributename>' cannot be applied to an assembly
Attribute '<attributename>' is not valid: <error>
Attribute cannot be used because it does not have a Public constructor
Attribute 'Conditional' is only valid on 'Sub' declarations
Attribute constant '<constantname>' cannot be the target of an assignment
Attribute specifier is not a complete statement
Attribute 'System.Runtime.InteropServices.DefaultCharSetAttribute' is not supported in this version
Attribute value is not valid; expecting 'value'
Attribute value is not valid; expecting 'value1' or 'value2'
Attributes cannot be applied to local variables
Attributes cannot be applied to parameters of lambda expressions
Attributes cannot be generics or types nested inside generics
Bad checksum value, non hex digits or odd number of hex digits
Badly formed XML. File '<commentfile>' cannot be included
Bounds can be specified only for the top-level array when initializing an array of arrays
Bracketed identifier is missing closing ']'
Branching out of a 'Finally' is not valid
'ByRef' parameter '<parametername>' cannot be used in a lambda expression
'ByRef' parameter <parametername> cannot be used in a query expression
'ByVal' and 'ByRef' cannot be combined
Cannot convert 'type1' to 'type2'
Cannot create an instance of Module '<modulename>'
Cannot find .NET Framework directory: <error>
Cannot infer a common type for the first and second operands of the binary 'If' operator
Cannot infer a common type for the second and third operands of the 'If' operator
Cannot infer a data type for '<variablename>' because the array dimensions do not match
cannot send error report automatically
Cannot set the value of a local variable for a method that is not at the top of the stack
Cannot specify both /win32icon and /win32resource
Can't open '<filename>' for writing
'Case' can only appear inside a 'Select Case' statement
'Case' cannot follow a 'Case Else' in the same 'Select' statement
'Case Else' can only appear inside a 'Select Case' statement
'Case' statements are not valid in the Immediate window
'Catch' block never reached, because '<name1>' inherits from '<name2>'
'Catch' block never reached; <exception> handled above in the same 'Try' statement
'Catch' cannot appear after 'Finally' within a 'Try' statement
'Catch' cannot appear outside a 'Try' statement
'Catch' must end with a matching 'End Try'
'Catch' statements are not valid in the Immediate window
'Char' values cannot be converted to '<typename>'
Character 'character' (0x<hexadecimal>) is not allowed at the beginning of an XML name
Character 'character' (0x<hexadecimal>) is not allowed in an XML name
Character 'character' (0x<hexadecimal>) is not allowed in XML literal
Character constant must contain exactly one character
Character sequence '--' is not allowed in an XML comment
Class '<classname>' cannot be found
Class '<classname>' cannot be indexed because it has no default property
Class '<classname>' cannot inherit from itself: <message>
Class '<classname>' could not be created: <error>
Class '<classname>' has no accessible 'Sub New' and cannot be inherited
'Class' constraint and a specific class type constraint cannot be combined
'Class' constraint and 'Structure' constraint cannot be combined
'Class' constraint cannot be specified multiple times for the same type parameter
Class in an interface cannot be declared '<specifier>'
'Class' statement must end with a matching 'End Class'
'Class_Initialize' event is no longer supported
'Class_Terminate' event is no longer supported
Classes can inherit only from other classes
Classes cannot be declared '<specifier>'
Classes that are generic or contained in a generic type cannot inherit from an attribute class
Codepage '<name>' is invalid or not installed
Comma or ')' expected (Procedure Parameter List)
Comma or ')' expected (Type Argument List)
Comma or ')' expected (Type Parameter List)
Comma, ')', or a valid expression continuation expected
Comment statements cannot be evaluated.
Conflict between the default property and the 'DefaultMemberAttribute' defined on '|1'
Conflicts with '<name1>', which is implicitly created for '<name2>' in <type> '<name3>'
Const declaration cannot have an array initializer
Constant '<constantname>' cannot depend on its own value
Constant cannot be the target of an assignment
Constant expression is required
Constant expression not representable in type '<typename>'
Constraint type '<typename>' already specified for this type parameter
Construct makes an indirect reference to assembly '<assemblyname>', which contains '<typename>'
Construct makes an indirect reference to project '<projectname>', which contains '<typename>'
Constructor '<name>' cannot call itself
Constructor call is valid only as the first statement in an instance constructor
Constructor must be declared as a Sub, not as a Function
Constructors cannot implement interface methods
'Continue Do' can only appear inside a 'Do' statement
'Continue For' can only appear inside a 'For' statement
'Continue' must be followed by 'Do', 'For' or 'While'
'Continue' statements are not valid in the Immediate window
'Continue While' can only appear inside a 'While' statement
Conversion from '<type1>' to '<type2>' cannot occur in a constant expression
Conversion from 'Date' to 'Double' requires calling the 'Date.ToOADate' method
Conversion from 'Double' to 'Date' requires calling the 'Date.FromOADate'
Conversion operators cannot convert from a base type
Conversion operators cannot convert from a derived type
Conversion operators cannot convert from a type to its base type
Conversion operators cannot convert from a type to its derived type
Conversion operators cannot convert from a type to the same type
Conversion operators cannot convert from an interface type
Conversion operators cannot convert from Object
Conversion operators cannot convert to an interface type
Conversion operators cannot convert to Object
Conversion operators must be declared either 'Widening' or 'Narrowing'
Conversions from '<typename1>' to '<typename2>' must be explicit
Could not find library '<libraryname>'
Could not find standard library: '<filename>'
'Currency' is no longer a supported type; use the 'Decimal' type instead
'Custom Event' must end with a matching 'End Event'
'Custom' modifier can only be used immediately before an 'Event' declaration
'Custom' modifier is not valid on events declared in interfaces
'Custom' modifier is not valid on events declared without explicit delegate types
'D' can no longer be used to indicate an exponent, use 'E' instead
Data type(s) of the type parameter(s) cannot be inferred from these arguments
'Declare' statements are not allowed in generic types or types contained in generic types
Declare statements in a Module cannot be declared '<specifier>'
'Declare' statements in a structure cannot be declared '<specifier>'
'Default' can be applied to only one property name in a <type>
'Default' cannot be combined with '<specifier>'
Default member '<membername>' is not a property
Default values cannot be supplied for parameters that are not declared 'Optional'
Definition of method <method> is not accessible in this context
Delegate in an interface cannot be declared '<specifier>'
Delegate type '<delegatename>' of event '<eventname>' is not CLS-compliant
Delegates cannot handle events
Delegates cannot implement interface methods
Derived classes cannot raise base class events
Division by zero occurred while evaluating this expression
'Do' must end with a matching 'Loop'
Duplicate XML attribute 'attributeName'
Either the parameter type or the return type of this conversion operator must be the containing type
Element names cannot use the 'xmlns' prefix
'Else' must be preceded by a matching 'If' or 'ElseIf'
'ElseIf' must be preceded by a matching 'If' or 'ElseIf'
'End AddHandler' must be preceded by a matching 'AddHandler' declaration
'End AddHandler' must be the first statement on a line
'End Class' must be preceded by a matching 'Class'
'End Enum' must be preceded by a matching 'Enum'
'End Event' must be preceded by a matching 'Custom Event'
'End Function' must be preceded by a matching 'Function'
'End Function' must be the first statement on a line
'End Get' must be preceded by a matching 'Get'
'End Get' must be the first statement on a line
'End If' must be preceded by a matching 'If'
'End Interface' must be preceded by a matching 'Interface'
'End Module' must be preceded by a matching 'Module'
'End Namespace' must be preceded by a matching 'Namespace'
End of parameter list expected
'End Operator' must be preceded by a matching 'Operator'
'End Operator' must be the first statement on a line
'End Property' must be preceded by a matching 'Property'
'End RaiseEvent' must be preceded by a matching 'RaiseEvent' declaration
'End RaiseEvent' must be the first statement on a line
'End RemoveHandler' must be preceded by a matching 'RemoveHandler' declaration
'End RemoveHandler' must be the first statement on a line
'End Select' must be preceded by a matching 'Select Case'
'End Set' must be preceded by a matching 'Set'
'End Set' must be the first statement on a line
'End' statement cannot be used in class library projects
'End' statements are not valid in the Immediate window
'End Structure' must be preceded by a matching 'Structure'
'End Sub' must be preceded by a matching 'Sub'
'End Sub' must be the first statement on a line
'End SyncLock' must be preceded by a matching 'SyncLock'
'End Try' must be preceded by a matching 'Try'
'End Using' must be preceded by a matching 'Using'
'End While' must be preceded by a matching 'While'
'End With' must be preceded by a matching 'With'
'EndIf' statements are no longer supported; use 'End If' instead
Enum '<enumname>' must contain at least one member
Enum in an interface cannot be declared '<specifier>'
'Enum' must end with a matching 'End Enum'
Enums must be declared as an integral type
'Equals' cannot compare a value of type <type1> with a value of type <type2>
Error creating assembly manifest: <error message>
Error creating Win32 resources: <error message>
Error embedding Win32 manifest: <manifest>
Error embedding Win32 manifest: Manifest File <file> cannot be found
Error embedding Win32 manifest: Option /win32manifest conflicts with /nowin32manifest
Error saving temporary Win32 resource file '<filename>': <error message>
Error setting assembly manifest option: <error message>
'Error' statements are not valid in the Immediate window
Errors occurred while compiling the XML schemas in the project
Evaluation of expression or statement stopped
Evaluation of expression or statement timed out
Evaluation of lambda expressions is not valid in the debugger
Event '<eventname>' cannot be found
Event '<eventname>' cannot be handled because it is not accessible from '<name>'
Event name length cannot exceed 1011 characters
Events cannot be declared with a delegate type that has a return type
Events cannot have a return type
Events declared with an 'As' clause must have a delegate type
Events in a Module cannot be declared '<specifier>'
Events in interfaces cannot be declared '<implements>'
Events of shared WithEvents variables cannot be handled by non-shared methods
'Exit AddHandler', 'Exit RemoveHandler' and 'Exit RaiseEvent' are not valid
'Exit Do' can only appear inside a 'Do' statement
'Exit For' can only appear inside a 'For' statement
'Exit Function' is not valid in a Sub or Property
'Exit' must be followed by 'Sub', 'Function', 'Property', 'Do', 'For', 'While', 'Select', or 'Try'
'Exit Operator' is not valid. Use 'Return' to exit an Operator
'Exit Property' is not valid in a Function or Sub
'Exit Select' can only appear inside a 'Select' statement
'Exit' statements are not valid in the Immediate window
'Exit Sub' is not valid in a Function or Property
'Exit Try' can only appear inside a 'Try' statement
'Exit While' can only appear inside a 'While' statement
Expected '%=' at start of an embedded expression
Expected beginning '<' for an XML tag
Expected closing '%>' for embedded expression
Expected closing ';' for XML entity
Expected closing '?>' for XML processor instruction
Expected closing ']]>' for XML CDATA section
Expected closing '-->' for XML comment
Expected closing '>' for XML tag
Expected matching closing double quote for XML attribute value
Expected matching closing single quote for XML attribute value
Explicit initialization is not permitted for arrays declared with explicit bounds
Expression cannot appear inside a quoted attribute value
Expression cannot be converted into an expression tree
Expression cannot be evaluated at this time
Expression does not produce a value
Expression is a value and therefore cannot be the target of an assignment
Expression is not an array or a method, and cannot have an argument list
Expression is of type '<typename>', which is not a collection type
Expression of type <type> is not queryable
Expression of type '<typename>' cannot be converted to 'Object' or 'ValueType'
Expression of type '<typename1>' can never be of type '<typename2>'
Expression or statement is not valid in debug windows
Expression recursively calls containing Operator '<operatorsymbol>'
Expression recursively calls the containing property '<propertyname>'
'Extension' attribute can be applied only to 'Module', 'Sub', or 'Function' declarations
Extension method '<methodname>' has type constraints that can never be satisfied
Extension methods can be defined only in modules
Extension methods must declare at least one parameter
Field '<fieldname>' is of an unsupported type
Field or property '<membername>' is not found
File <filename> could not be found
File name already declared with a different GUID and checksum value
'Finally' can only appear once in a 'Try' statement
'Finally' cannot appear outside a 'Try' statement
'Finally' must end with a matching 'End Try'
'Finally' statements are not valid in the Immediate window
First operand in a binary 'If' expression must be nullable or a reference type
First statement of a method body cannot be on the same line as the method declaration
For loop control variable '<variablename>' already in use by an enclosing For loop
'For' loop control variable already in use by an enclosing 'For' loop
'For' loop control variable cannot be of type '<type>'
'For' must end with a matching 'Next'
Friend assembly reference <reference> is invalid
Full width characters are not valid as XML delimiters
Fully qualified names for types in namespaces cannot be longer than <number> characters
Function '<procedurename>' doesn't return a value on all code paths
Function evaluation is disabled because a previous function evaluation timed out
Function without an 'As' clause; return type of Object assumed
Generic methods cannot be exposed to COM
Generic methods cannot use 'Handles' clause
Generic parameter constraint type <typename> is not CLS-compliant
Generic parameters used as optional parameter types must be class constrained
Generic type '<generictypename>' cannot be imported more than once
'Get' accessor of property '<propertyname>' is not accessible
'Get' statement must end with a matching 'End Get'
'Get' statements are no longer supported
'Get' statements are no longer supported (Visual Basic)
'Global' must be followed by '.' and an identifier
'Global' not allowed in handles; local name expected
'Global' not allowed in this context; identifier expected
'GoSub' statements are no longer supported
'GoTo' statements are not valid in the Immediate window
GoTo to label '<labelname>' cannot be used within lambda expressions
'Group' not allowed in this context; identifier expected
'Group' or an identifier expected
'Handles' in modules must specify a 'WithEvents' variable qualified with a single identifier
'Handles' is not valid on operator declaration
Identifier expected, preceded with a period
'If' must end with a matching 'End If'
'If' operands cannot be named arguments
'If' operator requires either two or three operands
'If', 'ElseIf', 'Else', 'End If', or 'Const' expected
Ignoring /noconfig option because it was specified in a response file
Illegal call expression or index expression
Implemented type must be an interface
Implementing class '<classname>' for interface <interfacename> cannot be found
'Implements' is not valid on operator declaration
'Implements' not valid in Modules
'Implements' statement must follow any 'Inherits' statement and precede all declarations in a class
Implicit conversion from '<typename1>' to '<typename2>'
Implicit variable '<variablename>' is invalid because of '<message>'
Import of type '<typename>' from assembly or module '<name>' failed
Imports alias '<name>' conflicts with '<name2>' declared in the root namespace
'Imports' statements must precede any declarations
Inappropriate use of <keyword> keyword in a module
Index '<indexnumber>' for dimension '<dimensionnumber>' is out of range
Information for the type of '<typename>' has not been loaded into the runtime
Inheriting from 'System.<classname>' is not valid
'Inherits' can appear only once within a 'Class' statement and can only specify one class
'Inherits' not valid in Modules
'Inherits' statement must precede all declarations in a class
'Inherits' statements must precede all declarations in an interface
Initializers on structure members are valid only for 'Shared' members and constants
Instance members and 'Me' cannot be used in a query expression
Instance members and 'Me' cannot be used within a lambda expression in structures
Instance of restricted type '<typename>' cannot be used in a lambda expression
Instance of restricted type '<typename>' cannot be used in a query expression
Interface '<interfacename>' can be implemented only once by this type
Interface '<interfacename>' cannot be indexed because it has no default property
Interface '<interfacename>' cannot inherit from itself: <message>
Interface '<interfacename>' is not implemented by this class
Interface can inherit only from another interface
Interface members must be methods, properties, events, or type definitions
'Interface' must end with a matching 'End Interface'
Internal compiler error: code generator received malformed input
'Is' requires operands that have reference types, but this operand has the value type '<typename>'
Keyword is not valid as an identifier
Label '<labelname>' is already defined in the current method
Label '<labelname>' is not defined
Labels are not valid in the Immediate window
Labels are not valid outside methods
Labels that are numbers must be followed by colons
Lambda expression cannot be converted to '<typename>' because '<typename>' is not a delegate type
Lambda expression will not be removed from this event handler
Lambda expressions are not valid in the first expression of a 'Select Case' statement
Late binding operations cannot be converted to an expression tree
Late bound resolution; runtime errors could occur
Leading '.' or '!' can only appear inside a 'With' statement
Leading '.' or '!' cannot appear in a constant expression
'Let' and 'Set' assignment statements are no longer supported
'Line' statements are no longer supported (Smart Device/Visual Basic Compiler Error)
'Line' statements are no longer supported (Visual Basic Compiler Error)
Local variable '<variablename>' cannot be referred to before it is declared
Local variable '<variablename>' is already declared in the current block
Local variable cannot have the same name as the function containing it
Local variables within generic methods cannot be declared 'Static'
Local variables within methods of structures cannot be declared 'Static'
'Loop' cannot have a condition if matching 'Do' has one
Loop control variable cannot be a property or a late-bound indexed array
'Loop' must be preceded by a matching 'Do'
Loop statements are not valid in the Immediate window
Matching '<operatorsymbol1>' operator is required for '<operatorsymbol2>'
Maximum number of errors has been exceeded
Maximum number of warnings has been exceeded
'Me' cannot be the target of an assignment
Member '<membername>' cannot be found in class '<classname>'
Member '<membername>' cannot be initialized in an object initializer expression because it is shared
Members in a Module cannot be declared '<specifier>'
Members in a Structure cannot be declared '<specifier>'
Method '<methodname>' cannot handle Event '<eventname>' because they do not have the same signature
Method '<methodname>' does not have a signature compatible with delegate <'delegatename'>
Method '<methodname>' does not have the same signature as delegate '<delegatename>'
Method '<methodname>' is already declared in interface '<interfacename>'
Method arguments must be enclosed in parentheses
Method call did not return a value
Method cannot contain both a 'Try' statement and an 'On Error' or 'Resume' statement
Method cannot contain both an 'On Error GoTo' statement and a lambda or query expression
Method cannot have both a ParamArray and Optional parameters
Method declaration statements must be the first on a logical line
Method does not have a signature compatible with the delegate
Method in a structure cannot be declared 'Protected' or 'Protected Friend'
Methods cannot be declared 'Static'
Methods declared in structures cannot have 'Handles' clauses
Methods in a Module cannot be declared '<specifier>'
Methods in a Module cannot implement interface members
Methods of 'System.Nullable(Of T)' cannot be used as operands of the 'AddressOf' operator
Methods or events that implement interface members cannot be declared 'Shared'
'Microsoft.VisualBasic.ComClassAttribute' and '<attribute>' cannot both be applied to the same class
Module '<modulename>' cannot be used as a type
Module attribute '<attributename>' is not valid: <error>
'Module' statement must end with a matching 'End Module'
'Module' statements can occur only at file or namespace level
Modules cannot be declared '<specifier>'
Multi-dimensional array cannot be converted to an expression tree
Multiple initializations of '<membername>'
'MustOverride' method '<methodname>' cannot be called with 'MyClass'
'MyBase' cannot be used with method '<methodname>' because it is declared 'MustOverride'
'MyBase' must be followed by '.' and an identifier
'MyClass' cannot be used outside of a class
'MyClass' must be followed by '.' and an identifier
Name <membername> is not CLS-compliant
Name '<name>' is either not declared or not in the current scope
Name <namespacename> in the root namespace <fullnamespacename> is not CLS-compliant
Name of field or property being initialized must start with '.'
Named argument cannot match a ParamArray parameter
Named arguments are not valid as array subscripts
Namespace declaration must start with 'xmlns'
Namespace declaration with prefix cannot have an empty value in XML literals
Namespace or type '<name>' has already been imported
'Namespace' statement must end with a matching 'End Namespace'
'Namespace' statements can occur only at file or namespace level
Nested function does not have the same signature as delegate '<delegatename>'
Nesting of parentheses in lambda expression's parameter list exceeds maximum allowable depth
'New' cannot be used on a class that is declared 'MustInherit'
'New' cannot be used on a type parameter that does not have a 'New' constraint
'New' cannot be used on an interface
'New' constraint and 'Structure' constraint cannot be combined
'New' constraint cannot be specified multiple times for the same type parameter
'New' is not valid in this context
'Next' control variable does not match 'For' loop control variable
Next control variable does not match For loop control variable '<variablename>'
'Next' must be preceded by a matching 'For'
'Next' statement names more variables than there are matching 'For' statements
No accessible '<genericprocedurename>' accepts this number of type arguments
No accessible '<procedurename>' is most specific: <signaturelist>
No accessible 'Main' method with an appropriate signature was found in '<name>'
No accessible non-generic '<procedurename>' found
Non-CLS-compliant <membername> is not allowed in a CLS-compliant interface
Non-CLS-compliant 'MustOverride' member is not allowed in a CLS-compliant <classname>
Non-intrinsic type names are not allowed in conditional compilation expressions
Non-shared members in a Structure cannot be declared 'New'
'NotInheritable' classes cannot have members declared '<specifiername>'
'NotOverridable' cannot be specified on methods that do not override another method
Nullable modifier cannot be specified in variable declarations with 'As New'
Nullable modifier cannot be specified on both a variable and its type
Nullable modifier cannot be used with a variable whose implicit type is 'Object'
Nullable parameters must specify a type
Nullable type inference is not supported in this context
Nullable types are not allowed in conditional compilation expressions
Number of indices exceeds the number of dimensions of the indexed array
Number of indices is less than the number of dimensions of the indexed array
Object created by Edit and Continue is not yet available for evaluation
Object initializer syntax cannot be used to initialize an instance of type 'Object'
Object no longer exists due to compile error or deletion
'Of' required when specifying type arguments for a generic type or method
Omitted argument cannot match a ParamArray parameter
'On Error' statements are not valid in the Immediate window
'On Error' statements are not valid within 'SyncLock' statements
'On Error' statements are not valid within 'Using' statements
'On GoTo' and 'On GoSub' statements are no longer supported
Only conversion operators can be declared '<keyword>'
Only one of 'NotOverridable', 'MustOverride', or 'Overridable' can be specified
Only one of 'Public', 'Private', 'Protected', 'Friend', or 'Protected Friend' can be specified
Only one XML comment block is allowed per language element
Operands of type Object used for operator '<operatorsymbol>'; runtime errors could occur
Operator '<operator>' must have a return type of Boolean
Operator '<operator>' must have a second parameter of type 'Integer'
Operator '<operator>' must have either one or two parameters
Operator '<operator>' must have one parameter
Operator '<operator>' must have two parameters
Operator '<operatorname>' is not defined for type '<typename>'
Operator '<operatorname>' is not defined for types '<type1>' and '<type2>'
Operator '<operatorname>' is not defined for types '<typename1>' and '<typename2>'
Operator '<operatorsymbol>' doesn't return a value on all code paths
Operator 'operator' is not defined for types 'type1' and 'type2'
Operator without an 'As' clause; type of Object assumed
Operators cannot be declared '<keyword>'
Operators cannot be declared in Modules
Operators must be declared 'Public'
Operators must be declared 'Shared'
option '<option>' cannot be followed by '+' or '-'; ignored
option <optionname> can be followed only by '+' or '-'
Option <optionname> requires <argument>
'Option <specifier>' statement can only appear once per file
'Option Compare' must be followed by 'Text' or 'Binary'
'Option Explicit' can be followed only by 'On' or 'Off'
'Option Infer' can be followed only by 'On' or 'Off'
'Option' must be followed by 'Compare', 'Explicit', 'Infer', or 'Strict'
'Option' statements must precede any declarations or 'Imports' statements
'Option Strict' can be followed only by 'On' or 'Off'
Option Strict Custom can only be used as an option to the command-line compiler (vbc.exe)
Option Strict On disallows implicit conversions from '<type1>' to '<type2>'
Option Strict On disallows late binding
Option Strict On disallows operands of type Object for operator '<operatorname>'
Option Strict On prohibits operands of type Object for operator '<operatorname>'
Option Strict On requires all Function, Property, and Operator declarations to have an 'As' clause
Option Strict On requires all variable declarations to have an 'As' clause
Option Strict On requires that all method parameters have an 'As' clause
'Optional' and 'ParamArray' cannot be combined
'Optional' cannot be applied to the first parameter of an extension method
Optional parameters cannot be declared as the type '<type>'
Optional parameters cannot have structure types
Optional parameters must specify a default value
Out of memory (Visual Basic Compiler Error)
Overload resolution failed because no '<method>' is accessible
Overload resolution failed because no accessible '<method>' accepts this number of arguments
Overloading methods declared in multiple base interfaces is not valid
'ParamArray' cannot be applied to the first parameter of an extension method
ParamArray parameter must be a one-dimensional array
ParamArray parameter must be an array
ParamArray parameters must be declared 'ByVal'
ParamArray parameters must have an array type
Parameter '<parametername>' already has a matching argument
Parameter '<parametername>' already has a matching omitted argument
Parameter '<parametername>' in '<methodname>' already has a matching omitted argument
Parameter '<parametername>' of '<methodname>' already has a matching argument
Parameter already declared with name '<argumentname>'
Parameter cannot have the same name as its defining function
Parameter specifier is duplicated
Parameter type of this unary operator must be the containing type '<typename>'
Parameter types of '<operator>' must be '<typename>' to be used in a 'For' statement
Partial method '<methodname>' cannot use the 'Implements' keyword
Partial methods must be declared 'Private'
Partial methods must be declared 'Private' instead of '<accessModifier>'
Partial methods must have empty method bodies
Possible problem detected while building assembly '<assemblyname>': <error>
Possible problem detected while building assembly: <error>
'prefix' is an XML prefix and cannot be used as an expression
Project '<projectname>' cannot generate a reference to file '<filename>'
Project already has a reference to assembly <assemblyidentity>
Project-level conditional compilation constant '<constantname>' is not valid: <error>
Project-level conditional compilation constant is not valid: <error>
Properties cannot be declared '<modifiername>'
Properties declared 'ReadOnly' cannot have a 'Set'
Properties declared 'WriteOnly' cannot have a 'Get'
Properties in a Module cannot be declared '<specifier>'
Properties with no required parameters cannot be declared 'Default'
Property '<propertyname>' doesn't return a value on all code paths
Property '<propertyname>' is of an unsupported type
Property '<propertyname>' is 'ReadOnly'
Property '<propertyname>' is 'WriteOnly'
Property '<propertyname>' with no parameters cannot be found
Property access must assign to the property or use its value
Property accessors cannot be declared '<accessmodifier>' in a 'Default' property
Property accessors cannot be declared '<accessmodifier>' in a 'NotOverridable' property
Property accessors cannot be declared '<keyword>'
Property cannot be declared '<propertymodifier>' because it contains a 'Private' accessor
Property Get/Let/Set are no longer supported; use the new Property declaration syntax
Property missing 'End Property'
Property or field '<name>' does not have a valid attribute type
Property parameters cannot have the name 'Value'
Property without a 'ReadOnly' or 'WriteOnly' specifier must provide both a 'Get' and a 'Set'
Property without an 'As' clause; type of Object assumed
Protected types can only be declared inside of a class
Query expressions are not valid in debug windows
'RaiseEvent' declaration must end with a matching 'End RaiseEvent'
'RaiseEvent' definition missing for event '<eventname>'
'RaiseEvent' is already declared
'RaiseEvent' statements are not valid in the Immediate window
Range specified for 'Case' statement is not valid
Range variable <variable> is already declared
Range variable name can be inferred only from a simple or qualified name with no arguments
Range variable name cannot match the name of a member of the 'Object' class
'ReadOnly' and 'WriteOnly' cannot be combined
'ReadOnly' attribute property '<propertyfield>' cannot be the target of an assignment
'ReadOnly' properties cannot have an access modifier on 'Get'
'ReadOnly' property '<propertyname>' cannot be the target of an assignment
'ReadOnly' property must provide a 'Get'
'ReadOnly' variable cannot be the target of an assignment
'ReDim' cannot change the number of dimensions of an array
'ReDim' statements can no longer be used to declare array variables
'ReDim' statements require a parenthesized list of the new bounds of each dimension of the array
Reference required to assembly '<assemblyname>' containing the base class '<classname>'
Reference required to assembly '<assemblyname>' containing the definition for event '<eventname>'
Reference required to assembly '<assemblyname>' containing the type '<membername>'
Reference required to module '<modulename>' containing the base class '<classname>'
Reference required to module '<modulename>' containing the definition for event '<eventname>'
Reference required to module '<modulename>' containing the implemented interface '<interfacename>'
Reference required to module '<modulename>' containing the type '<membername>'
Reference to a non-shared member requires an object reference
Reference to object under construction is not valid when calling another constructor
Referenced '<membername>' has a value of 'Nothing'
Referenced array element has a value of 'Nothing'
Referenced object '<objectname>' has a value of 'Nothing'
Referenced object has a value of 'Nothing'
'RemoveHandler' declaration must end with a matching 'End RemoveHandler'
'RemoveHandler' definition missing for event '<eventname>'
'RemoveHandler' is already declared
Required attribute 'version' missing from XML declaration
Resource name '<resourcename>' cannot be used more than once
Response file <filename> included multiple times
'Resume' statements are not valid in the Immediate window
Return and parameter types of '<operator>' must be '<typename>' to be used in a 'For' statement
'Return' statement in a Function, Get, or Operator must return a value
'Return' statement in a Sub or a Set cannot return a value
'Return' statement in an 'AddHandler', 'RemoveHandler', or 'RaiseEvent' method cannot return a value
'Return' statements are not valid in the Immediate window
Return type of function '<procedurename>' is not CLS-compliant
Root namespace <namespacename> is not CLS-compliant
Run-time exception thrown: <exception> - <exception>
Security attribute '<attributename>' cannot be applied to a module
Security attribute '<attributename>' is not valid: <error>
'Select Case' must end with a matching 'End Select'
'Select' statements are not valid in the Immediate window
'Set' accessor of property '<propertyname>' is not accessible
'Set' method cannot have more than one parameter
'Set' parameter cannot be declared '<specifier>'
'Set' parameter must have the same type as the containing property
'Set' statement must end with a matching 'End Set'
'Shared' attribute property '<propertyfield>' cannot be the target of an assignment
'Shared' cannot be combined with '<specifier>' on a method declaration
'Shared' cannot be combined with '<specifier>' on a property declaration
Shared 'Sub New' cannot be declared '<specifier>'
Shared 'Sub New' cannot have any parameters
Side effects not valid during expression evaluation in this context
Source file <filename> specified multiple times
Specifiers and attributes are not valid on 'Namespace' statements
Specifiers and attributes are not valid on this statement
Specifiers are not valid on 'AddHandler', 'RemoveHandler' and 'RaiseEvent' methods
Specifiers valid only at the beginning of a declaration
Statement cannot appear outside of a method body
Statement cannot appear within a method body
Statement cannot appear within a property body
Statement cannot appear within an Enum body
Statement cannot appear within an event body
Statement cannot appear within an interface body
Statement cannot appear within an interface body (Visual Basic Error)
Statement cannot end a block outside of a line 'If' statement
Statement does not declare a 'Get' or 'Set' method
Statement does not declare an 'AddHandler', 'RemoveHandler' or 'RaiseEvent' method
Statement is not valid in a namespace
Statement is not valid in an interface
Statement is not valid inside a method
Statement recursively calls the containing 'AddHandler' for event '<eventname>'
Statements and labels are not valid between 'Select Case' and first 'Case'
Static local variable '<variablename>' is already declared
'Stop' statements are not valid in the Immediate window
String constants must end with a double quote
Structure '<structurename>' cannot be indexed because it has no default property
Structure '<structurename>' cannot contain an instance of itself: <error>
Structure '<structurename>' must contain at least one instance member variable or Event declaration
'Structure' constraint and a specific class type constraint cannot be combined
'Structure' constraint cannot be specified multiple times for the same type parameter
Structure in an interface cannot be declared '<specifier>'
'Structure' statement must end with a matching 'End Structure'
Structures cannot declare a non-shared 'Sub New' with no parameters
Structures cannot have 'Inherits' statements
'Sub Main' is declared more than once in '<namespace>': <message>
'Sub Main' was not found in '<name>'
'Sub New' cannot be declared '<modifier>'
'Sub New' cannot be declared in an interface
'Sub New' cannot be declared 'Overrides'
'Sub New' cannot handle events
'Sub New' cannot implement interface members
'Sub' or 'Function' expected after 'Delegate'
'SyncLock' operand cannot be of type '<typename>' because '<typename>' is not a reference type
'SyncLock' statement must end with a matching 'End SyncLock'
'SyncLock' statements are not valid in the Immediate window
Syntax error (Visual Basic Error)
Syntax error in cast operator; two arguments separated by comma are required
Syntax error in conditional compilation expression
System.CLSCompliantAttribute cannot be applied to property 'Get'/'Set'
'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to a 'Declare'
'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to a 'Get' or 'Set'
'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to instance methods
'System.Runtime.InteropServices.DllImportAttribute' cannot be applied to interface methods
'System.STAThreadAttribute' and 'System.MTAThreadAttribute' cannot both be applied to '|1'
'System.Void' can only be used in a GetType expression
The /moduleassemblyname option may only be specified when building a target of type 'module'
The '?' character cannot be used here
The ConnectionTimeout must be greater than 0
The default assembly reference '<reference>' has already been automatically added; ignored
The file '<filename>' is not a text file
The maximum number of errors has been exceeded
The targeted version of the .NET Compact Framework does not support latebinding
The targeted version of the .NET Compact Framework does not support latebound overload resolution
The targeted version of the .NET Compact Framework does not support the 'End' statement
the value '<value>' is invalid for option '<optionname>'
'Throw' operand must derive from 'System.Exception'
'Throw' statement cannot omit operand outside a 'Catch' statement or inside a 'Finally' statement
'Throw' statements are not valid in the Immediate window
Too few type arguments to '<genericMethodName>'
Too few type arguments to extension method '<methodname>' defined in '<typename>'
Too many arguments to '<procedurename>'
Too many arguments to extension method '<methodname>' defined in '<typename>'
Too many type arguments to '<genericMethodName>'
Too many type arguments to extension method '<methodName>' defined in '<typeName>'
'Try' must end with a matching 'End Try'
Try must have at least one 'Catch' or a 'Finally'
'Try' statements are not valid in the Immediate window
'TryCast' operand must be reference type, but '<typename>' is a value type
Type '<typename>' cannot be used as an attribute because it is not declared 'Public'
Type '<typename>' cannot inherit from a type nested within it
Type '<typename>' cannot inherit from a type parameter
Type '<typename>' has no constructors
Type '<typename>' has no type parameters and so cannot have type arguments
Type '<typename>' in assembly '<assemblyname1>' has been forwarded to assembly '<assemblyname2>'
Type '<typename>' is imported from different versions of assembly '<assemblyname>'
Type <typename> is not CLS-compliant
Type '<typename>' is not defined
Type '<typename>' is not defined or the module containing it is not loaded in the debugging session
Type '<typename>' is not supported because it either directly or indirectly inherits from itself
Type '<typename>' must define operator '<operator>' to be used in a 'For' statement
Type arguments cannot be applied to the expression '<expression>'
Type arguments could not be inferred from the delegate
Type arguments for method '<procedurename>' could not be inferred from the delegate '<delegatename>'
Type arguments inferred for method '<procedurename>' result in the following errors :<errorlist>
Type arguments inferred for method '<procedurename>' result in the following warnings :<warninglist>
Type arguments unexpected because attributes cannot be generics
Type character '<character>' cannot be used in a declaration with an explicit type
Type character '<charactername>' does not match declared data type '<type>'
Type character cannot be used in a 'Sub' declaration because a 'Sub' doesn't return a value
Type character cannot be used in a type parameter declaration
Type characters are not allowed in label identifiers
Type characters are not allowed on Imports aliases
Type characters cannot be used in anonymous type declarations
Type characters cannot be used in range variable declarations
Type constraint '<expression>' is not a class or interface
Type constraint cannot be a 'NotInheritable' class
Type declaration characters are not valid in this context
Type in a Module cannot be declared '<specifier>'
Type of '<variablename>' cannot be inferred from an expression containing '<variablename>'
Type of member '<membername>' is not CLS-compliant
Type of optional value for optional parameter <parametername> is not CLS-compliant
Type of parameter '<parametername>' is not CLS-compliant
Type parameter '<typeparametername>' can only have one constraint that is a class
Type parameter '<typeparametername>' cannot be constrained to itself: '<errormessage>'
Type parameter '<typeparametername>' cannot be inferred
Type parameter '<typeparametername>' for '<genericprocedurename>' cannot be inferred
Type parameter '<typeparametername>' has the same name as a type parameter of an enclosing type
Type parameter already declared with name '<typeparametername>'
Type parameter cannot have the same name as its defining function
Type parameter not allowed in 'Implements' clause
Type parameter with a 'Structure' constraint cannot be used as a constraint
Type parameters cannot be specified on this declaration
Type parameters cannot be used as qualifiers
Type parameters or types constructed with type parameters are not allowed in attribute arguments
'Type' statements are no longer supported; use 'Structure' statements instead
Types are not available in this context
Types declared 'Private' must be inside another type
Unable to apply security attribute(s) to '<name>': <error>
Unable to create a .NET Runtime interface: <error>
Unable to create Assembly Linker object: <error message>
Unable to create strong-named assembly from key file '<filename>': <error>
Unable to create temp file in path '<filename>': <error message>
Unable to create XML documentation file '<name>': <message>
Unable to embed resource file '<filename>': <error message>
Unable to emit assembly: <error message>
Unable to find entry point '<name>' in DLL '<filename>': <error>
Unable to find required file '<filename>'
Unable to get type information for '<typename>'
Unable to include XML fragment '<elementpath>' of file '<commentfile>'
Unable to link to resource file '<filename>': <error message>
Unable to load DLL '<filename>': <error>
Unable to load information for class '<classname>'
Unable to load referenced library '<filename>': <error>
Unable to open file '<filename>': <error>
Unable to open key file '<filename>': <error>
Unable to open module file '<filename>': <error>
Unable to open resource file '<filename>': <error>
Unable to open response file '<filename>'
Unable to sign assembly: <error message>
Unable to sign file '<filename>': <error>
Unable to write output to memory
Unable to write temporary file because temporary path is not available
Unable to write to output file '<filename>': <error>
Underlying type <typename> of Enum is not CLS-compliant
Unrecognized option <optionname>; ignored
Unused local constant: '<constant>'
Unused local variable: '<localvariablename>'
Use command line option '<option>' or appropriate project settings instead of '<parameter>'
'Using' must end with a matching 'End Using'
'Using' operand of type '<typename>' must implement System.IDisposable
'Using' resource variable must have an explicit initialization
'Using' resource variable type can not be array type
'Using' statements are not valid in the Immediate window
Using the iteration variable in a lambda expression may have unexpected results
Value '<valuename1>' cannot be converted to '<valuename2>'
Value of type '<type1>' cannot be converted to '<type2>'
Value of type '<type1>' cannot be converted to '<type2>' because '<type3>' is not a reference type
Value of type '<typename1>' cannot be converted to '<typename2>'
Value of type '<typename1>' cannot be converted to '<typename2>' (Multiple file references)
Value of type 'type1' cannot be converted to 'type2'
Variable '<variablename>' hides a variable in an enclosing block
Variable '<variablename>' is passed by reference before it has been assigned a value
Variable '<variablename>' is used before it has been assigned a value
Variable '<variablename>' is used before it has been assigned a value (Visual Basic Error)
Variable cannot be initialized with non-array type '<elementname>'
Variable declaration statements are not valid in the Immediate window
Variable declaration without an 'As' clause; type of Object assumed
Variable uses an Automation type not supported in Visual Basic
Variables in Modules cannot be declared '<specifier>'
'Variant' is no longer a supported type; use the 'Object' type instead
Visual Basic compiler is unable to recover from the following error: <error>
Visual Basic Compiler Messages
Warning number '<number>' for the option '<optionname>' is either not configurable or not valid
Warning treated as error: <error>
Web methods cannot be evaluated in debug windows
'Wend' statements are no longer supported; use 'End While' statements instead
'While' must end with a matching 'End While'
White space may not appear here
'Widening' and 'Narrowing' cannot be combined
'With' contexts and statements are not valid in debug windows
'With' must end with a matching 'End With'
'WithEvents' variable does not raise any events
'WithEvents' variable does not raise any instance events that are accessible to '<containername>'
WithEvents variable name length cannot exceed 1019 characters
'WithEvents' variables cannot be typed as arrays
'WithEvents' variables must have an 'As' clause
'WriteOnly' properties cannot have an access modifier on 'Set'
'WriteOnly' property must provide a 'Set'
Wrong number of type arguments passed to method '<genericprocedurename>'
XML attribute 'attribute1' must appear before XML attribute 'attribute2'
XML attribute 'version' must be the first attribute in XML declaration
XML attributes cannot be selected from type 'type'
XML axis properties do not support late binding
XML comment block must immediately precede the language element to which it applies
XML comment cannot appear within a method or a property
XML comment cannot be applied more than once on a partial <type>
XML comment exception must have a 'cref' attribute
XML comment has a tag with a 'cref' attribute '<attribute>' that could not be resolved
XML comment must be the first statement on a line
XML comment parameter must have a 'name' attribute
XML comment tag '<tag>' is not permitted on a '<element>' language element
XML comment tag 'include' must have a '<attribute>' attribute
XML comment tag 'returns' is not permitted on a 'declare sub' language element
XML comment tag 'returns' is not permitted on a 'WriteOnly' Property
XML comment type parameter must have a 'name' attribute
XML declaration does not allow attribute 'attributeName'
XML descendant elements cannot be selected from type 'type'
XML documentation parse error: <error>
XML documentation parse error: Start tag '<tag>' doesn't have a matching end tag
XML elements cannot be selected from type 'type'
XML entity references are not supported
XML literal cannot appear here unless it is enclosed in parentheses
XML literals and XML axis properties are not available
XML literals and XML properties are not supported in embedded code within ASP.NET
XML namespace prefix 'prefix' is already declared
XML namespace prefix 'prefix' is not defined
XML namespace prefix 'prefix' is reserved for use by XML and the namespace URI cannot be changed
XML namespace URI 'http://www.w3.org/XML/1998/namespace' can be bound only to 'xmlns'
XML processing instruction name 'name' is not valid
You must reference at least one range variable on both sides of the 'Equals' operator
See Also
Tasks
How to: Get Information about Visual Basic Compiler Errors