473,839 Members | 1,358 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTPMAIL on Windows Server 2003

We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an
invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile) +945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs
e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.
Nov 17 '05 #1
9 3885
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server 2003
just fine.

Have you set the SmtpServer property? Also, I would check the permissions
on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is invalid. ]

[TargetInvocatio nException: Exception has been thrown by the target of an
invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers, CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile) +945 SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs
e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

Nov 17 '05 #2
Thanks Ray. Yes, the code is fine. It broke when we moved the site from a
Windows 2000 Server to a new Windows 2003 Server. I will check the
permissions, although ASP.Net is running under the SYSTEM account. I did
find CDOSYS.DLL on the machine, and found its' registry entries.

Any other thoughts?

Thanks,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Ray Dixon [MVP]" <ra*@NOSPAM.gre eble.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server 2003 just fine.

Have you set the SmtpServer property? Also, I would check the permissions
on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is

invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[]

modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile)

+945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.


Nov 17 '05 #3
FWIW, I have seen the "Could not access 'CDO.Message' object" error before
when the ASPNET user did not have access to the CDO dll.

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Ray Dixon [MVP]" <ra*@NOSPAM.gre eble.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server 2003 just fine.

Have you set the SmtpServer property? Also, I would check the permissions
on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is

invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[]

modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile)

+945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.


Nov 17 '05 #4
Hi Ray,

New piece of info: I can run this from my development (XP Pro) machine (same
LAN) without any problems. So I doubt that it's a permission issue. Any
thoughts?

Thanks,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Ray Dixon [MVP]" <ra*@NOSPAM.gre eble.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server 2003 just fine.

Have you set the SmtpServer property? Also, I would check the permissions
on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is

invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[]

modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile)

+945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.


Nov 17 '05 #5
This app is running under the "SYSTEM" account. Also, I can run this app
from my dev machine (Windows XP Pro) without a hitch. I'm really beginning
to think that it's something about that Windows 2003 OS on that machine. Are
there any OS components you think I need to install that aren't installed?

Thanks again,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"James J. Foster" <ja***@dotnetco ders.com> wrote in message
news:eA******** ******@tk2msftn gp13.phx.gbl...
FWIW, I have seen the "Could not access 'CDO.Message' object" error before
when the ASPNET user did not have access to the CDO dll.

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Ray Dixon [MVP]" <ra*@NOSPAM.gre eble.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server

2003
just fine.

Have you set the SmtpServer property? Also, I would check the permissions
on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is

invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifi er[]

modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile) +945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o stBackEvent(Str ing eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.



Nov 17 '05 #6
We finally figured it out. The error message was confusing. The code didn't
specify an SMTP Server, and the SMTP Server wasn't installed on that
machine. As SMTPMail uses the local server by default, well, you can guess
the rest.

Thanks all,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Kevin Spencer" <ke***@takempis .com> wrote in message
news:O3******** ******@TK2MSFTN GP11.phx.gbl...
This app is running under the "SYSTEM" account. Also, I can run this app
from my dev machine (Windows XP Pro) without a hitch. I'm really beginning
to think that it's something about that Windows 2003 OS on that machine. Are there any OS components you think I need to install that aren't installed?

Thanks again,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"James J. Foster" <ja***@dotnetco ders.com> wrote in message
news:eA******** ******@tk2msftn gp13.phx.gbl...
FWIW, I have seen the "Could not access 'CDO.Message' object" error before
when the ASPNET user did not have access to the CDO dll.

--
James J. Foster, DotNetCoders
http://www.dotnetcoders.com
"Ray Dixon [MVP]" <ra*@NOSPAM.gre eble.com> wrote in message
news:OT******** ******@TK2MSFTN GP12.phx.gbl...
Hi Kevin,

According to these docs, System.Web.Mail should work on Windows Server

2003
just fine.

Have you set the SmtpServer property? Also, I would check the permissions on the mailroot folder and its subfolders. I found a couple of posts
mentioning that as a problem with the ASPNET account.
--
Ray Dixon - Microsoft MVP
ra*@NOSPAM.gree ble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis .com> wrote in message
news:uG******** ******@TK2MSFTN GP12.phx.gbl...
> We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail > fails now with the following message:
>
> [COMException (0x80040220): The "SendUsing" configuration value is
invalid.
> ]
>
> [TargetInvocatio nException: Exception has been thrown by the target of an
> invocation.]
> System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags
invokeAttr,
> Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, > String[] namedParameters ) +0
> System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr, > Binder binder, Object target, Object[] args, ParameterModifi er[]
modifiers,
> CultureInfo culture, String[] namedParameters ) +473
> System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String > methodName, Object[] args) +58
>
> [HttpException (0x80004005): Could not access 'CDO.Message' object.]
> System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String > methodName, Object[] args) +112
> System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
> System.Web.Mail .SmtpMail.Send( MailMessage message) +150
> SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile) +945
> SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender,

EventArgs
> e) +2109
> System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
>
>

System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP o
> stBackEvent(Str ing eventArgument) +57
> System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
> sourceControl, String eventArgument) +18
> System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
> System.Web.UI.P age.ProcessRequ estMain() +1258
>
> I am guessing that CDOSYS is not part of the server installation?

Any > remedies?
>
> --
> TIA,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Complex things are made up of
> lots of simple things.
>
>



Nov 17 '05 #7
Kevin,

I checked the ASP.NET source and it looks as though this is likely caused
by the Windows Server 2003 box not being configured for the Mail Server
role. The easiest way to do that is via the Manage Your Server link on the
Start menu. That should resolve the issue.

If you don't want to set that up, make sure that you are setting the
SMTPServer property prior to calling Send.

Jim Cheshire
Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Kevin Spencer" <ke***@takempis .com>
Subject: SMTPMAIL on Windows Server 2003
Date: Tue, 29 Jul 2003 14:15:47 -0400
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uG************ **@TK2MSFTNGP12 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: dynamicsystems. com 216.54.1.213
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1630 75
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is invalid.
]

[TargetInvocatio nException: Exception has been thrown by the target of an
invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags invokeAttr,Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers,
CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile) +945 SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgs
e) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108

System.Web.UI. WebControls.But ton.System.Web. UI.IPostBackEve ntHandler.Raise P ostBackEvent(St ring eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceContro l, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.


Nov 17 '05 #8
Thanks Jim. I hope by now you've seen my message about resolving this issue.

Thanks,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Jim Cheshire (MS)" <ja******@onlin e.microsoft.com > wrote in message
news:6H******** ******@cpmsftng xa06.phx.gbl...
Kevin,

I checked the ASP.NET source and it looks as though this is likely caused
by the Windows Server 2003 box not being configured for the Mail Server
role. The easiest way to do that is via the Manage Your Server link on the Start menu. That should resolve the issue.

If you don't want to set that up, make sure that you are setting the
SMTPServer property prior to calling Send.

Jim Cheshire
Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Kevin Spencer" <ke***@takempis .com>
Subject: SMTPMAIL on Windows Server 2003
Date: Tue, 29 Jul 2003 14:15:47 -0400
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uG************ **@TK2MSFTNGP12 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: dynamicsystems. com 216.54.1.213
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1630 75X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
fails now with the following message:

[COMException (0x80040220): The "SendUsing" configuration value is invalid.]

[TargetInvocatio nException: Exception has been thrown by the target of an
invocation.]
System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters ) +0
System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifi er[] modifiers,CultureInfo culture, String[] namedParameters ) +473
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
methodName, Object[] args) +112
System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
System.Web.Mail .SmtpMail.Send( MailMessage message) +150
SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile)

+945
SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender, EventArgse) +2109
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108


System.Web.UI. WebControls.But ton.System.Web. UI.IPostBackEve ntHandler.Raise P
o
stBackEvent(St ring eventArgument) +57
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceContro l, String eventArgument) +18
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33 System.Web.UI.P age.ProcessRequ estMain() +1258

I am guessing that CDOSYS is not part of the server installation? Any
remedies?

--
TIA,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

Nov 17 '05 #9
Hi Kevin,

Yes I do. Thanks.

Jim Cheshire
Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Kevin Spencer" <ke***@takempis .com>
References: <uG************ **@TK2MSFTNGP12 .phx.gbl> <6H************ **@cpmsftngxa06 .phx.gbl>Subject: Re: SMTPMAIL on Windows Server 2003
Date: Tue, 29 Jul 2003 18:00:20 -0400
Lines: 108
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <O7************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: dynamicsystems. com 216.54.1.213
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1631 67
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet

Thanks Jim. I hope by now you've seen my message about resolving this issue.
Thanks,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Jim Cheshire (MS)" <ja******@onlin e.microsoft.com > wrote in message
news:6H******* *******@cpmsftn gxa06.phx.gbl.. .
Kevin,

I checked the ASP.NET source and it looks as though this is likely caused
by the Windows Server 2003 box not being configured for the Mail Server
role. The easiest way to do that is via the Manage Your Server link on

the
Start menu. That should resolve the issue.

If you don't want to set that up, make sure that you are setting the
SMTPServer property prior to calling Send.

Jim Cheshire
Developer Support
ASP.NET
ja******@online .microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Kevin Spencer" <ke***@takempis .com>
>Subject: SMTPMAIL on Windows Server 2003
>Date: Tue, 29 Jul 2003 14:15:47 -0400
>Lines: 48
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <uG************ **@TK2MSFTNGP12 .phx.gbl>
>Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
>NNTP-Posting-Host: dynamicsystems. com 216.54.1.213
>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
>Xref: cpmsftngxa06.ph x.gblmicrosoft.publ ic.dotnet.frame work.aspnet:163 075 >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
>
>We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail
>fails now with the following message:
>
>[COMException (0x80040220): The "SendUsing" configuration value isinvalid. >]
>
>[TargetInvocatio nException: Exception has been thrown by the target of an >invocation.]
> System.RuntimeT ype.InvokeDispM ethod(String name, BindingFlags

invokeAttr,
>Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
>String[] namedParameters ) +0
> System.RuntimeT ype.InvokeMembe r(String name, BindingFlags invokeAttr,
>Binder binder, Object target, Object[] args, ParameterModifi er[]modifiers, >CultureInfo culture, String[] namedParameters ) +473
> System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
>methodName, Object[] args) +58
>
>[HttpException (0x80004005): Could not access 'CDO.Message' object.]
> System.Web.Mail .LateBoundAcces sHelper.CallMet hod(Object obj, String
>methodName, Object[] args) +112
> System.Web.Mail .CdoSysHelper.S end(MailMessage message) +1846
> System.Web.Mail .SmtpMail.Send( MailMessage message) +150
> SATSNET.iMember Registration.Se ndMembershipMai lReply(Object iProfile)

+945
> SATSNET.iMember Registration.fu ncSaveMemberInf o(Object Sender,EventArgs >e) +2109
> System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +108
>


System.Web.UI .WebControls.Bu tton.System.Web .UI.IPostBackEv entHandler.Rais e P
o
>stBackEvent(St ring eventArgument) +57
> System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
>sourceContro l, String eventArgument) +18
> System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData)

+33 > System.Web.UI.P age.ProcessRequ estMain() +1258
>
>I am guessing that CDOSYS is not part of the server installation? Any
>remedies?
>
>--
>TIA,
>
>Kevin Spencer
>Microsoft MVP
>.Net Developer
>http://www.takempis.com
>Complex things are made up of
>lots of simple things.
>
>
>



Nov 17 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1675
by: billg_sd | last post by:
My client app uses SmtpMail.Send() is failing on client PC's that are configured with Outlook 2003. I'm using code similar to: Dim Message As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage( Message.To = args(0 Message.From = args(1 Message.Subject = args(2 Message.Body = args(3
4
3137
by: bonbon | last post by:
I used SmtpMail class sent email in asp.net before, no problem. Now I moved to Windows XP and Visual Studio .NET 2003. My ASP.NET app can not send out any email. The following exception is thrown: System.Runtime.InteropServices.COMException: The "SendUsing" configuration value is invalid. I don't know how the sendusing configuration should be setup. Checked online help, found no useful info. Any feedback is appreciated. Thanx. Bon
6
2461
by: Cameron Eckman | last post by:
I get various errors when I try to use email on the machine I have. XP professional. It works fine on another machine with NT 2000 server. Below is the code: 'BEGIN CODE Dim oMail As New MailMessage() With oMail .From = "mypc@baxglobal.com" .To = "ceckman@baxglobal.com"
5
2157
by: ElanKathir | last post by:
Hi ! I wrote one code for Send the E-mail, But that code have some problem , So please help me Here i paste my code and Error: Error: Server Error in '/Elan_Sample' Application. --------------------------------------------------------------------------------
0
2537
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To = "el@illico.fr" mail.From = "el@illico.fr" mail.Subject = "test envoi de mail" mail.Body = "test envoi de mail"
0
1836
by: Eric van Wijk | last post by:
Hi All, After installing SP1 for Windows 2003, I'm running into the 'Error loading type library/DLL' exception when using CDO through System.Web.Mail: ------------------------------------------- //try { // security assertion
9
1856
by: Russell Stevens | last post by:
I generate pdf files on my server and allow users to access them via a browser and also email them. Most files work fine whether the user uses his browser or gets an email with a pdf attachment which he can then open with Acrobat. All my pdf files work fine via a browser, but some are corrupted by one byte when sent as an email attachment. The problem is 100% reproducible - the code is trivial. Am I missing something obvious or is this a...
1
2266
by: Phill. W | last post by:
Have Our Friends in Redmond put delay loops into the SMTPMail.Send() method, or does it /really/ take almost a second to send a mail message? I've written a windows service that send emails. It was originally intended for /small/ volume, direct communication with our clients. Somebody, however, has decided they want to send a message to the entire client-list - nearly 200,000 entries - and, at our current throughput, this will take us...
2
2810
by: joseph2000 | last post by:
Hi, I have problem with e-mails which are being send via System.Web.Mail.SmtpMail class but before describing the problem itself first I'd like to show shortly what I'm doing on the server. The following code is being executed on the server to send e-mails to clients (.NET Framework 1.1): .... EmailsInQueCollection eqc = GetUnsentEmails();
0
9855
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10908
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10587
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10649
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10295
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9426
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7018
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4487
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.