We have created a Windows application in which we have form containing few panels. In one of these panels we load user controls as different pages of our application which is controlled by a tab control (designed by us). The user controls (simple information pages like web pages) are inherited from another user control which is a BaseUserControl which itself is a user control & contains few basic functionality (methods) required in all user control pages.
This base user control is in a totally different project which added to our applications solution & has been referenced by our windows application project as project reference.
We are facing a problem while opening these user controls in designer view. When we try to open it in our designer an error message is displayed in the designer instead of user control as follows :-(
An error occurred while loading the document. Fix error & try loading document again. The error message follows:
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:
InheritedUserControl--- The base class ‘BaseUserControlProject.BaseUserControl' could not be loaded. Ensure the assembly has been referenced or built if it is part of the project.
For your information, Our solutions have many projects (39 projects) most of them are business components whose output is set to one single projects bin directory.
Can anybody tell me the reason for this problem?
Thanks in advance.