winforms - Interop Forms Toolkit DLL and "Class does not support Automation or does not support expected interface" error -
I have a .NET WinForms application that I have converted to a COM DLL using Interop Form Toolkit 2.1. I have both TLB and Microsoft in the direct setup project for the application. Interface Format Register as a TBB file Bundraupi Com. The necessary conditions for the project are to ensure that Windows Installer 3.1, .NET Framework 3.5 SP1, and Microsoft Interop Form ResettlebaseABable Package 2.0A have been installed.
When I run it locally on both a Windows XP box with Visual Studio 2010 and Visual Studio 6 installed, it works fine, however, on this Windows XP machine, let me say this one Receives an error: "Class does not support automation or does not support the expected interfaces."
Any thoughts?
I found that for those of you who are moving in the same, do the following: :
- In Visual Studio 2005, 2008, or 2010 (I used 2010) and created your Interop form.
- Then, go to Visual Basic 6. If your library is not already referenced, refer to the library.
- Make your VB6 executable.
- Go back to Visual Studio (.NET version) and just build your installer. In this way both the installer and the VB6 have the same .tbb file
Thank you for your suggestion is good for you Chris!
Comments
Post a Comment