Server object error 'ASP 0177 : 800401f3', Server.CreateObject Failed

Question:

Trying to use the code below, but constantly get :

Server object error 'ASP 0177 : 800401f3' 
Server.CreateObject Failed 
/zzz/aaa.asp, line 135 
Invalid ProgID.

The Chilkatmail2.dll is registered, I can get ordinary text mails via the ChilkatMail.dll with no problems.

Any help greatly appreciated.

' Create a mailman

#135     set mailman = Server.CreateObject("ChilkatWebMail2.WebMailMan2")


            ' Unlock the component

            mailman.UnlockComponent ("----temp unlock code---- ")

            

            ' Tell the mailman where the SMTP server is located

            mailman.SmtpHost = "ourhost"

 

            ' Create an Email message

            set email = Server.CreateObject("ChilkatWebMail2.WebEmail2")

            

            ' Enter the recipient's information

            email.AddTo "support", "support@chilkatsoft.com"

 

            ' Enter the sender's information

            email.FromName = "Sales"

            email.FromAddress = "sales@chilkatsoft.com"

 

            ' Enter the email subject

            email.Subject = "This is the subject"

            email.SetHtmlBody = strTEMPHTML

            'email.Body = strTEMPHTML

            

            ' Send Email from ASP

            if mailman.SendEmail(email) then

                        Response.write "Message sent successfully!<br><br>"

            else

                        Response.write "ERROR: Message not sent!<br><br>"

            end if

            

Answer:

The correct DLL for ChilkatWebMail2 is WebMail2.dll, and not ChilkatMail.dll. This is a self-registering DLL that can be registered using regsvr32.exe

The download is here: http://www.chilkatsoft.com/download/WebMail.msi

The installer will automatically register the DLL.