Cannot add new item "Inherited Form": Unable to add reference... error

O

olympus_mons

Hi,

this is my second problem. I cannot add a new item "Inherited Form" to
my project. After browsing to the DLL containing the component (form
window class) I see the correct class name in the "Inheritance Picker"
dialog, but when I select the class and click "Ok" I get the error:

Unable to add reference 'MyNameSpace.UI' to the application. Check
that a different version of 'MyNameSpace.UI' is not already
referenced.

But if I manually add a reference to the DLL to my app, then create a
new form window, change the parent class name from "Form" to
"MyFormClass", then it works.

What maybe wrong when I try to go the VS2005 IDE way using the
"Inheritance Picker" Dialog?

I also googled for this error, found numerous references but none of
them really provided a definitive hint what may be the cause of the
problems (ranging from "setting 'Local Copy' to false for the
referenced DLL", or "changing the GUID for the DLL and rebuilding",
"putting the DLL in the default folder for VS projects in MyDocuments"
to the obligatory "rebooting the PC").

Does anybody have a good hint for me?
Thanks,
Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top