0

In Visual Studio in Immediate Window I was trying to check for value of variable:

(listElem as Project).ID

and I get error

The type 'projName.Folder.Project' exists in both 'projName.dll' and 'projName.dll'.

How can that be?

EDIT: The 'projName.dll' is the dll I am debugging, so there is no reference of 'projName.dll' added to 'projName.dll'. In bin folder I have only one 'projName.dll'.It's not web app.

therko
  • 59
  • 4
  • 17

1 Answers1

0

I've run into this exact issue before. You likely have multiple copies of the same dll (potentially different versions) in your references or bin folder. Look for duplicates in both of these locations and remove them.