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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 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