Creating COM object written in C#

J

jdyer521

Hello. I have an COM object that was written in C# using ASP.NET. This
is a COM object. I was able to instantiate this COM object using C++
code. (I hadto import the tlb file at the top of the C++ file.)

Now I need to write JavaScript to access this COM object. The code I
am using is this:
try
{
var myCOMObject = new ActiveXObject("progid");
}
catch (err)
{
}

where progid is the progid from the registry. (It's under
KEY_CLASSES_ROOT\CLSID\(guid)\ProgID.

This is going into the catch block. The error it is getting
(err.number) is -2146827859. I searched the Web, and this error code
means "Automation server can't create object."

What am I doing wrong? I need to create this COM object in JavaScript.
Many thanks in advance for the help.

Justin
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top