Com Object Failing on server.createobject
I am having problems calling a Com object that I created under Visual Studio 2005 with Standard ASP. I registered it using regasm.exe. Below is my code (VB) . I have tried creating the object two ways. What am I doing wrong ?
Server.CreateObject("TestCom2.TestFunction") and
Server objecterror 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/mears/ReadUserCert.asp, line 56
800401f3
Calling this way gives this message (which I think is correct)
Server.CreateObject("TestCom2.MyComClass")
Server objecterror 'ASP 0177 : 80070002'
Server.CreateObject Failed
/mears/ReadUserCert.asp, line 56
80070002
<ComClass(MyComClass.ClassId, MyComClass.InterfaceId, MyComClass.EventsId)> _
PublicClass MyComClass
#Region"COM GUIDs"
' These GUIDs provide the COM identity for this class' and its COM interfaces. If you change them, existing' clients will no longer be able to access the class.PublicConst ClassIdAsString ="d3631825-7853-42b7-8e99-c830d52e1b8f"PublicConst InterfaceIdAsString ="a7c0b4bc-b92a-44de-a60d-77f0ca829794"PublicConst EventsIdAsString ="feafc6d3-8ff7-4db4-b892-0aea80a62731"#
EndRegion' A creatable COM class must have a Public Sub New()' with no parameters, otherwise, the class will not be' registered in the COM registry and cannot be created' via CreateObject.PublicSubNew()MyBase.New()EndSubPublicFunction TestFunction()AsStringReturn"testcall"EndFunctionEndClass

