Casing of namespace name '<namespacename1>' does not match casing of namespace name '<namespacename2>' in file '<filepath>'

A namespace appears more than once in the project, but with different casings.

Casing refers to the use of upper-case and lower-case characters in the name of a programming element. Visual Basic is case-insensitive, but the common language runtime (CLR) is case-sensitive. For more information, see "Case Sensitivity in Names" in Declared Element Names.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC40055

To correct this error

  • As a precaution, always use the identical casing in every reference to a namespace. This can prevent misinterpretation by the common language runtime.

See also