Controls that are built by using Visual Studio .NET 2003 fail to load in Visual Studio .NET 2002 (820649)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
SYMPTOMSYou can create and then build a Microsoft Windows control by using Microsoft Visual
Studio .NET 2003. However, when you add the Windows control to Microsoft Visual Studio .NET 2002,
you may receive the following error message: There are
no components in '<Project path>\bin\TestCtrl.dll' that can be placed on
the toolbox. When you try to add the
Windows control programmatically in Visual Studio .NET 2002, you may receive the following error message: Attempted to store an element of the incorrect type into the
array. CAUSEThe types of the base class of USER control and
of System.Windows.Forms.UserControl are different in .NET Framework version 1.0
and in .NET Framework version 1.1. Therefore, the runtime displays an error when you try to load
a control that was created in Visual Studio .NET 2003 and that you then want to use in Visual Studio .NET
2002.STATUS This
behavior is by design.
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kberrmsg kbWindowsForms kbControl kbprb KB820649 kbAudDeveloper |
---|
|