Hi, i am trying to call a method i have written in c# from vbscript.
I have followed just about all of the instructions i can find on the web and am still having problems.
Specifically i am getting the error, ActiveX component can't create object, Code: 800A01AD.
So far i have done the following..
1] Set ComVisible(true)
2] Registered using /codebase
3] Strong named my assembly
4] Confirmed it is in the registry and points to the correct location
5] Made the class public
6] Have no static methods
7] Made the method i want to call public
8] Have a parameterless constructor
9] Explicitly defined a Guid
My vbscript looks like this..
set oObject = CreateObject("TTTTTT.FFFFF.CCCCCCCCC")
My c# code looks like this..
using System;
using System.IO;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace XXXXX.YYYYY
{
[ComVisible(true)]
[Guid("3EB62C37-79BC-44f7-AFBD-7B8113D1FD4F")]
[ProgId("TTTTTT.FFFFF.CCCCCCCCC")]
public class CCCCCCCCC
{
public void MyFunc()
{
//
}
}
}
Can anyone help?