CDO Email and .NET 2.0

I recently deployed a new web app written with Visual Studio 2005, so we had to install .NET Framework 2.0 on the server. Now one of the older .NET applications (for which I do not have the source code) throws an error message when trying to send email using CDO (the message says "Could not access CDO.Message object"). I never uninstalled the 1.1 framework, and from what I read the two should be able to exist side by side. I think my only options are to either find the older .dll for CDO and make sure it is in the right place, or rebuild my new application to use the Framework 1.1. Are these my only options Can they even be done (i.e., can you build a web app in VS 2005 that will work with .NET 1.1) Any suggestions will be appreciated! Thanks!

Answer this question

CDO Email and .NET 2.0

  • Randal Greene

    1.1 and 2.0 can co exist.
    If you are trying to send mail use System.Net.Mail namespace.
    System.Web.Mail uses CDO and it is deprecated in 2.0

  • Skyler Fowler

    Thanks for the info! That's what I was afraid of (it is deprecated in 2.0). Unfortunately, the app that is having email problems is one that was developed outside (based on the .NET 1.1 framework) and I don't have the source code. I did develop another app (using Visual Studio 2005, which is based on 2.0) for the same server, which is what caused the problem. Is it possible to create my app using VS 2005 and use the .NET 1.1 framework instead of 2.0 If not, I'll probably have to contact the vendor of the other app and request a code change ($$$). Thanks!!!
  • CDO Email and .NET 2.0