Visual Inheritance Error Message - How to Fix?

Posted on 2003-02-27
Medium Priority
Last Modified: 2010-07-27
I have a C# Windows Solution with 3 projects:
ROI_Main - WinForm application and startup project
ROI_Validation - Class library
ROI_Base - Class library with a base WinForm.

I want to visually inherit the form I created in ROI-Base in the Main Program - ROI_Main.

I choose 'Add Inherited Form' from the popup menu, and choose the 'Default_Form' from the ROI_Base project's DLL file - via the wizard.

I then get a really wierd error message:
"Unable to add reference 'ROI_Base' to the current application. Check that a different version of 'ROI_Base' is not already referenced."

What am I doing wrong?
How do I recover from this?
How do I get visual inheritance to work?

I'm sure I'm missing something simple - I just can't see it. ...

Question by:NetMeister

Accepted Solution

TwinkyT earned 280 total points
ID: 8195343
Hi there NetMeister,

I had the same problem that you are currently experiencing.  The way that I got around this problem is to take the individual projects within my Solution and separate them into other solutions.  So for instance if your solution contains 2 projects, one is the orignal form and the other project contains the inherited form.  Separate the solution into two solutions instead.  This worked for me.  Definitely seems to be a bug in .NET.

Hope that it helps!!


Author Comment

ID: 8200397
Thanks TwinkyT! It did the trick and I'm "cooking"!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Watch the video of Kernel Migrator for SharePoint, which demonstrate the process easily of migration from SharePoint to SharePoint, OneDrive for Business & Google Drive servers, Public Folder to SharePoint, File Server to SharePoint. The tool has va…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question