I have an object in .net that I have added the [ComVisible(true)] attribute to the class. I've built the Class, GacUtil to put it in the GAC, and RegAsm to register the com object. However, when executing some classic ASP Code I receive the following error:
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object
/waam/waampubfunc.inc, line 245
The following is the .net object (Test object as the actual has too many dependencies):
namespace ClassicASPComTest{ [ComVisible(true)] public class ComTest { public string GetTimeStamp() { return DateTime.Now.ToString(); } }}
The following is the Classic ASP code:
dim test
set test = Server.CreateObject("ClassicASPComTest.ComTest") ß line 245
I’ve spent most of the day trying to find a solution for my issue, most posts I see mention issues with security, I’ve gone as far as adding the IUsr and Network Service to the admin group, but still receive the error. Other posts I’ve seen refer to regsvc32, but this is a managed DLL.
I’m at a complete loss on this and would appreciate any help on getting this working. I’m sure it’s going to be something simple as I’ve spent a day on it J