Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Cannot show interface because '<element>' cannot be found

Visual Studio 2008

Class Designer generates this error when the declaration of an interface is invalid or missing in the source code.

To correct this error

  • Ensure that the code element that you entered is an existing interface.

  • If the code element that you entered is defined outside your project, ensure that you have included the correct references in Solution Explorer.

  • If you modify your project structure or move source files in the project, Class Designer can lose track of the type. (This is especially true of the source type of a typedef, base classes, or association types.) If this is the case, drag the modified or relocated source code to the class diagram again to redisplay it.

Community Additions

© 2015 Microsoft