We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

CDO.SYS-Error after Windows UpdateRSS

4 replies

Last post Dec 06, 2017 04:11 PM by Ample Sound

  • CDO.SYS-Error after Windows Update

    Jun 16, 2017 04:14 PM|hochhardt|LINK

    Hi, we send mails via cdo.sys. Last night the new windows-updates were installed. And now the cdo-script shows this: 

    "An error occurred on the server when processing the URL. Please contact the system administrator.

    If you are the system administrator please click here to find out more about this error."

    This is my testscript:

    -----------

    <!--
    METADATA
    TYPE="typelib"
    UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
    NAME="CDO for Windows 2000 Library"
    -->
    <%
    Set cdoConfig = CreateObject("CDO.Configuration")

    With cdoConfig.Fields
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = "my ip"
    .Update
    End With

    Set cdoMessage = CreateObject("CDO.Message")

    With cdoMessage
    Set .Configuration = cdoConfig
    .From = "my address"
    .To = "my second address"
    .Subject = "Samplemail"
    .TextBody = "a little bit content"
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing

    Response.write "<HTML><head><title>A message has been sent.</title></head><body>A message has been sent.</body></HTML>"

    %>

    ----------

    Has anyone an idea?

    Best regards

    Ralf

  • Re: CDO.SYS-Error after Windows Update

    Jun 19, 2017 02:31 AM|Yuk Ding|LINK

    Hi hochhardt,

    The error message "An error occurred on the server when processing the URL." means that an code error occur when you was trying to run the classic ASP web application. So if you need to fix this issue, you have to get the accurate error message first. Open IIS manager->site level->ASP->debugging properties->send error to browser->true.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: CDO.SYS-Error after Windows Update

    Jun 19, 2017 01:27 PM|hochhardt|LINK

    error ist fixed: after windows-update the cdosys.dll was broken. we have copied it from another server - now it's ok.

  • Re: CDO.SYS-Error after Windows Update

    Jun 22, 2017 06:31 AM|Yuk Ding|LINK

    Hi hochhardt,

    I'm glad your issue has been fixed. It will be appreciate if you could mark yourself as answer.

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.
  • Re: CDO.SYS-Error after Windows Update

    Dec 06, 2017 04:11 PM|Ample Sound|LINK

    Hi We have the same issue, our code is 

    <%

    sub sendemail(subject, content, receiver mail)

    Set objMessage = CreateObject("CDO.Message")

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.gmail.com"

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "sender mail"

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465

    objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1

    objMessage.Configuration.Fields.Update

    objMessage.Subject = subject

    objMessage.Sender = "sender mail"

    objMessage.HtmlBody = "content"

    objMessage.To = "receiver mail"

    objMessage.Send

    Set objMessage = nothing

    end sub

    %>

    the error report is

    error code CDO.Message.1 '80040213'