You may receive a "TargetInvocationException" error message when you delete the UserControl1 user control from a Windows Service project in a Visual Basic .NET or Visual Basic 2005 application (834615)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual Basic 2005
SYMPTOMSWhen you try to delete the UserControl1 user control from Component Designer in a Windows Service project, and the UserControl1 user control contains a Windowless ActiveX control, you may receive the following error message: The following exception has occurred: TargetInvocationException: Unable to get the window handle for the 'AxMSFlexGrid' control. Windowless ActiveX controls are not supported. CAUSEThe UserControl1 user control that contains the Windowless ActiveX controls is not currently supported in a Windows Service project.STATUS This behavior is by design.REFERENCESFor additional information, visit the following Microsoft Developer Network (MSDN) Web sites:
Modification Type: | Minor | Last Reviewed: | 10/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005applies kbToolbar kbService kbMsg kbDLL kbControl kbUser kbprb KB834615 kbAudDeveloper |
---|
|