View Full Version : Help - Error creating COM object

02-23-2006, 01:44 PM
Can anyone pleeeeeeease help me? and urgently?

i developed a COM component ( a dll ) and i wanted to invoke it in my web page - asp.
my code was:

dim obj,temp,try
set try=CreateObject("NEW")
this gave me the error:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'NEW'

if i typed CreateObject("NEW.CReply")
the error changed to:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'NEW.CReply'

Server.CreateObject said 'Invalid ProgId' :((

i also tried <OBJECT> tag, which didn't give error, but i wasn't able to reference the object ( if it was created at all)

plz. note : MY OBJECT IS REGISTERED. i found it in the registry.
i checked scrrun.dll it is well loaded
please help me

02-24-2006, 11:17 AM
The Programmatic ID (ProgID) is a string of the form:


03-02-2006, 10:58 AM
To all those who read this thread and gave it a thought,

thanx for your time guys,

i've realised that my component was built in VC++ - so, maybe that's why i can't get it in the ASP page. i asked my professor who said i should use ASP.NET - the 'Codebehind' property. i.e. create a C# program to call the component and put this C# code in the 'Codebehind' .aspx.cs file. i'm giving it a try. So, how can you call a C++ component in C#? can anyone tell me how to go about it?

03-06-2006, 09:51 AM
im using the following code:
dim cdosysmail
dim cdosyscon

set cdosysmail=server.createobject("CDO.Message")
set cdosyscon=server.createobject("CDO.Configuration")

cdosyscon.fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.mail.yahoo.co.uk"
cdosyscon.fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
cdosyscon.fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
cdosyscon.fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")= 60
set cdosysmail.configuration = cdosyscon
cdosysmail.from = request.form("username")
cdosysmail.to = "aref_exchange@yahoo.co.uk"
cdosysmail.subject = "Contact From Site !"
cdosysmail.HTMLBody = request.form("comment")
but i receive the following error:
Error Type:
Cannot modify or delete an object that was added using the COM+ Admin SDK
the file cdosys.dll is in \windows\system32
i am using windows xp SP2 and IIS 5.1

Please help?