'<name1>' is ambiguous, imported from the namespaces or types '<name2>'

You have provided a name that is ambiguous and therefore conflicts with another name. The Visual Basic compiler does not have any conflict resolution rules; you must disambiguate names yourself.

Error ID: BC30561

To correct this error

  1. Disambiguate the name by removing namespace imports.

  2. Fully qualify the name.

See Also

Reference

Imports Statement (.NET Namespace and Type)

Namespace Statement

Concepts

Namespaces in Visual Basic