Community discussion forum

Registering cdosys.dll

  • 6 years ago

    I am writing an app using System.Web.Mail.SmtpMail and I was receiving an error 'Could not create CDO.Message object'  I unregistered the cdosys.dll DLL and tried to reregister it.


    regsvr32 cdosys.dll


    This is the error I receive upon reregistration:
    DllRegisterServer in cdosys.dll failed.
    Return code was: 0x800704da


    Has anyone else run into this problem?


    Thanks in advance.

  • 6 years ago

    Luckily it is a legal registered copy.  Thanks so much for the help, I've already gone through the pains of un/re installing service pack 4 for windows and reinstalling VS.NET.  I'll send for the support and post their response.


    Can you post the URL?  I can't seem to find the free email support section.

  • 6 years ago

    Thanks I have a request in, and I am awaiting an answer.

  • 6 years ago

    This is the response i received from Microsoft:


    Thank you for contacting Microsoft Developer Support. My name is Duke, and I will be assisting you with this Service Request.


    In your case, you've indicated you met the error "Could not create 'cdo.message' object" while using the System.Web.Mail.SmtpMail object to send mail. You try to re-register the file cdosys.dll but failed with the error 0x800704da.


    We shall be working to resolve this specific issue through the course of the case. If I have misunderstood your concern, please let me know.


    Based on my research and experience, there are several versions of CDO, which may not be able to coexist on the same machine. For more details regarding the CDO versions, please refer to:


    Title: Collaboration Data Objects Roadmap


    URL: http://msdn.microsoft.com/library/en-us/dncdsys/html/cdo_roadmap.asp


    In order to resolve the issue, you can find the CDO file current registered, un-register it, and then re-register the file CDOSYS.DLL.


    In order to find/un-register the CDO file current registered, you may refer to the following steps:


    1.      Launch Regedt32.exe from “Start” -> “Run”.
    2.      Navigate to HKEYCLASSESROOT\CDO.xxxxxx (CDO.xxxxxx represents a registry item, i.e. CDO.Address), copy down the default value of the key CLSID (i.e. {CD000110-8B95-11D1-82DB-00C04FB1625D}).


    3.      Navigate to HKEYCLASSESROOT\CLSID{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} (Note: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} represents the value got in step 2.)


    4.      The default value of the sub-key “InprocServer32” is the path of the target file.
    5.      Un-register the file with the command line “Regsvr32 -u xxxxx.dll”.


    After un-registering the file, you can try to register the file CDOSYS.DLL again, and it should work fine.


    If you have any concerns regarding the above, please feel free to contact me. I’ll be glad to be of assistance.

  • 6 years ago

    Everything is working great.  This solved my problem perfectly.


    Thanks for the help.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter or Facebook!