Cannot create an ActiveX component



I took a simple VB 6.0 .dll project, consisting of a single form, and
used Vistual Studio 2005 to upgrade it and create a new solution. I
then registered it and created a type library using regasm. But when I
run a little test program to do a CreateObject() on that object,
specifying the System.Runtime.InteropServices.ProgID created by the
2005 upgrade wizard, an unhandled System.Exception is generated
("Cannot create ActiveX component"). On the other hand, the object
contained in the class library created with VB 6.0 gets created without
any problem. Since I am brand new to .NET programming, I assume I must
be overlooking something elementary. But what is it?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question