Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help - Error creating COM object

    Hi,
    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")
    obj=try.CReply
    temp=obj.Reply(login,reply)
    Response.Redirect("Login.asp?reply="&reply)
    %>
    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
    Last edited by gayu; 02-23-2006 at 05:19 PM.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,043
    Thanks
    0
    Thanked 251 Times in 247 Posts
    The Programmatic ID (ProgID) is a string of the form:
    Code:
    Project.ClassName

  • #3
    New to the CF scene
    Join Date
    Feb 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    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?
    Last edited by gayu; 03-02-2006 at 11:02 AM.

  • #4
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    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
    cdosyscon.fields.update
    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")
    cdosysmail.send
    cdosysmail=nothing
    cdosyscon=nothing
    %>
    but i receive the following error:
    Error Type:
    (0x8004020E)
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •