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.
Enter your message below
Sign in or Join us (it's free).