CDO.message

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • July

    #1

    CDO.message

    Hi, I created a testing application in C# on my local
    computer where Visual Studio.net 2002 is installed. And I
    created the saem application remote on my server. This
    application is a simple test on sending an email out. The
    local application works fine and successfully send out the
    email. But the remote one gave me the error message:

    -------------------------------------------------
    The "SendUsing" configuration value is invalid.
    Description: An unhandled exception occurred during the
    execution of the current web request. Please review the
    stack trace for more information about the error and where
    it originated in the code.

    Exception Details:
    System.Runtime. InteropServices .COMException:
    The "SendUsing" configuration value is invalid.

    [COMException (0x80040220): The "SendUsing" configuration
    value is invalid.]
    [TargetInvocatio nException: Exception has been thrown by
    the target of an invocation.]
    [HttpException (0x80004005): Could not
    access 'CDO.Message' object.]
    ---------------------------------------------

    Anyone can help me with this error message? What shall I
    do with the CDO.Message object? Thank you in advance.
  • dave wanta

    #2
    Re: CDO.message

    Hi,
    Make sure you set the SmtpMail.SmtpSe rver property to the ip or name
    of your mail server.

    like

    SmtpMail.SmtpSe rver = "127.0.0.1"

    hth,
    dave



    "July" <qzheng@stewart .com> wrote in message news:<056e01c34 80d$481a3e40$a3 01280a@phx.gbl> ...[color=blue]
    > Hi, I created a testing application in C# on my local
    > computer where Visual Studio.net 2002 is installed. And I
    > created the saem application remote on my server. This
    > application is a simple test on sending an email out. The
    > local application works fine and successfully send out the
    > email. But the remote one gave me the error message:
    >
    > -------------------------------------------------
    > The "SendUsing" configuration value is invalid.
    > Description: An unhandled exception occurred during the
    > execution of the current web request. Please review the
    > stack trace for more information about the error and where
    > it originated in the code.
    >
    > Exception Details:
    > System.Runtime. InteropServices .COMException:
    > The "SendUsing" configuration value is invalid.
    >
    > [COMException (0x80040220): The "SendUsing" configuration
    > value is invalid.]
    > [TargetInvocatio nException: Exception has been thrown by
    > the target of an invocation.]
    > [HttpException (0x80004005): Could not
    > access 'CDO.Message' object.]
    > ---------------------------------------------
    >
    > Anyone can help me with this error message? What shall I
    > do with the CDO.Message object? Thank you in advance.[/color]

    Comment

    Working...