« Previous Next »

Thread: ActiveX component can't create object

Last post 06-15-2009 3:15 AM by qbernard. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 06-09-2009, 7:33 AM

    • SakchaiC
    • Not Ranked
    • Joined on 06-09-2009, 11:10 AM
    • Posts 4

    ActiveX component can't create object

    Hi,

    I'm moving Classic ASP to run on IIS 7.0, Windows Vista Enterprise SP1.  I've tested to send e-mail by using CDONT component, but I got the error as below. I alreay registered and gave permission to IIS_IUSRS user already. 

    ___________________________________________

    Microsoft VBScript runtime error '800a01ad'

    ActiveX component can't create object

    /HumanResources/Test/SendMailbyCDONTS.asp, line 16

    ___________________________________________

     The below is my simple code. Any wong in this code?

    Dim sendmail
    Set  SendMail = Server.CreateObject("CDONTS.NewMail")
    SendMail.From = "someone@xyz.com"
    SendMail.To = "someone@abcd.com"
    SendMail.Subject = "Test send email by CDONTS"  
    Sendmail.Body =  "Test mail"
    SendMail.Send   <------------------------------------- Line 16
    Set Sendmail = Nothing

    Line 16 is SendMail.Send. Any wong in above code? This code works smoothly in IIS 5 & Windows Sever 2000. I stuck on this error almost a day. Anyone can tell me a clue?

    Thanks in advance.

     

  • 06-09-2009, 7:54 AM In reply to

    Re: ActiveX component can't create object

    Paul Lynch | www.iisadmin.co.uk
  • 06-09-2009, 8:06 AM In reply to

    • SakchaiC
    • Not Ranked
    • Joined on 06-09-2009, 11:10 AM
    • Posts 4

    Re: ActiveX component can't create object

    Thanks Pual. I've tried CDOSYS componnet, but still got error at .Send. The error looks like this:

    CDO.Message.1 error '80040220'

    The "SendUsing" configuration value is invalid.

     

    Hmm.... It makes my to cry now :-)

  • 06-09-2009, 9:40 AM In reply to

    Re: ActiveX component can't create object

    And now, we try search the forum with the new error msgs :)
    http://forums.iis.net/t/1146477.aspx

     

    Cheers,
    Bernard Cheah
  • 06-09-2009, 11:21 PM In reply to

    • SakchaiC
    • Not Ranked
    • Joined on 06-09-2009, 11:10 AM
    • Posts 4

    Re: ActiveX component can't create object

    Hi qbernard ,

    Thanks a lot. Refer to a given link, it works fine. But a littel bit slow. Can we edit the below code to use schemas at local machine instead of microsof URL? or any Idea?

    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
    'Name or IP of remote SMTP server
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.com"
    'Server port
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25

    Thanks in advance.
    SakchaiC

     

  • 06-10-2009, 1:43 AM In reply to

    • SakchaiC
    • Not Ranked
    • Joined on 06-09-2009, 11:10 AM
    • Posts 4

    Re: ActiveX component can't create object

    It seems MS way.  It works fine now....

     

    Thanks a lot to all you guys!.. :-)

  • 06-15-2009, 3:15 AM In reply to

    Re: ActiveX component can't create object

    @@ glad you found it.
    Cheers,
    Bernard Cheah
Page 1 of 1 (7 items)
Microsoft Communities