Assembly '<filepath1>' references assembly '<assemblyidentity>', which is ambiguous between '<filepath2>' and '<filepath3>'

Assembly '<filepath1>' references assembly '<assemblyidentity>', which is ambiguous between '<filepath2>' and '<filepath3>'. '<filepath2>' will be used.

An assembly accesses a type in another assembly to which it has more than one file reference.

The compiler cannot guarantee that the files at the different locations hold the same version of the same assembly. Therefore, the file references are ambiguous and the compiler must select one.

The assembly identity includes the assembly's name, version, public key if any, and culture. This information uniquely identifies the assembly.

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: BC42205

To correct this error

  1. Determine which file represents the best choice for the assembly. You might use criteria such as the most recent version, accessibility of the file, and likelihood of being updated when appropriate.

  2. Change all file references to this assembly so they use the identical file path to your chosen file.

See Also

Tasks

How to: Add or Remove References in Visual Studio (Visual Basic)

Concepts

Assemblies

Assemblies Overview

Assembly Benefits

Project References

Other Resources

Managing References