locked
Classic ASP CDO.SYS has stopped working RRS feed

  • Question

  • User-464213005 posted

    Hi,

    This is a bit of an odd query and might relate to IIS7, Classic ASP, CDO.SYS or even Outlook 2007.

    I have IIS7 set-up on my Vista Ultimate PC for locally testing websites we build. I also use it to run a classic ASP application that stores our customer information. Part of that system allows us to send emails to our clients (not a mass mailer - just one at a time) using CDO.SYS. This has been working fine for a couple of years and I've moved it from PC to PC as I've gone a long without any problems.

    Yesterday I upgraded my MS Office (on the same PC) from Office XP to MS Office Professional 2007 which includes Outlook 2007. Now when I try and email from our ASP application using CDO.SYS I get this error:

    Microsoft VBScript runtime error '800a01ad'
    ActiveX component can't create object: 'CDO.Message'
    /crm/customer-newhistory.asp, line 105

    (line 105 reads: Set ObjSendMail = CreateObject("CDO.Message")

    I've tried Googling the error and various permatations but I don't know what to do to get it working again. I do have a copy of the application working on my Vista Business laptop (which doesn't have Outlook 2007 installed) so I guess I could copy and files needed from that machine if required.

    I'd really appreciate any help anyone could give to try and resolve this.

    Thanks in advance.

    Tuesday, October 6, 2009 7:03 AM

Answers

  • User157784788 posted

    Try Re-registering CDOSYS.dll

    HTH.

    ~ Ganesh

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, October 6, 2009 9:34 AM
  • User157784788 posted

    Open command prompt and go to c:\Windows\System32 folder then run following

    regsvr32 CDOSYS.dll

    Check if it fixes the problem.

    ~ Ganesh

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, October 6, 2009 9:52 AM

All replies

  • User157784788 posted

    Try Re-registering CDOSYS.dll

    HTH.

    ~ Ganesh

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, October 6, 2009 9:34 AM
  • User-464213005 posted

    Hi Ganesh,

    Thanks for your quick reply.

    How do I re-register cdosys.dll?

    Tuesday, October 6, 2009 9:42 AM
  • User157784788 posted

    Open command prompt and go to c:\Windows\System32 folder then run following

    regsvr32 CDOSYS.dll

    Check if it fixes the problem.

    ~ Ganesh

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Tuesday, October 6, 2009 9:52 AM
  • User-464213005 posted

    Hi,

    Again, thanks for the quick reply.

    I tried that and got this error:

    The module "cdosys.dll" was loaded but the call to DllRegisterServer failed with error code 0x80020009

    Any ideas what this means?

    Thanks again.

    Tuesday, October 6, 2009 10:03 AM
  • User-464213005 posted

    Sorry, should have Googled that error before posting - I needed to run CMD as an administrator and now the dll has re-registered correctly.

    I'll now test and see if CDO.SYS is working again.

    Tuesday, October 6, 2009 10:06 AM
  • User157784788 posted

    0x80020009 - it means some exception occurred.

    Can you try following:

    Run regsvr32 /u cdosys.dll

    Then regsvr32 /i cdosys.dll

    ~ Ganesh

    Tuesday, October 6, 2009 10:07 AM
  • User-464213005 posted

    Yippee - it now works.

    Thanks Ganesh :-)

    Tuesday, October 6, 2009 10:08 AM
  • User157784788 posted

    Glad to help !!

    Tuesday, October 6, 2009 10:08 AM
  • User-1033944144 posted

     Hi Ganeshanekar,

    If I used 

    .To       = "contact@traveli.asia"
    .From     = "contact@traveli.asia"
    .Subject  = strSubject
    .HtmlBody = StrMail
    .Send

     

    Working fine when I replace with 

    .To       = strSendTo
    .From     = "contact@traveli.asia"
    .Subject  = strSubject
    .HtmlBody = StrMail
    .Send

     

    and it's not working.

    Monday, February 27, 2012 6:18 AM