[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

WNC

8/1/2007 4:57:00 PM

I have a third-party ActiveX control that I use in C# .NET with COM Interop
(dropped onto form in Visual Studio, etc.) Works just fine on four
different computers. However, I just got a new computer (Dell XPS 410).
When I installed the control, I got an error (Generate Activation Context
failed). I contacted the vendor, who said I need to install the Microsoft
Visual C++ 2005 Redistributable Package and The Microsoft Visual C++ 2005
SP1 Redistributable Package, available on Microsoft's website, then use
regsvr to register the control (I euidn't need to do that on any of the
other computers I've installed this ActiveX control on). So I did that,
everything installed without problems, and now the control is registered (I
checked).

However, when I use my C# interop program (same program I use successfully
on four other computers running Win2K, WinXP SP1 and SP2), I get an error
from System.Exception that says "Number of parameters specified does not
match the expected number." That's not true, it's the same version of the
control I use on the other computers, and the same software.

I'm completely baffled, and so far so is the vendor. Can anyone shed some
light on this problem? Could this have to do with the problems I had
installing the .ocx control in the first place?

Thanks very much for any help.