473,223 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,223 software developers and data experts.

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.
]

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile) +945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs
e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +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 3836
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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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. ]

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile) +945 SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs
e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +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.greeble.com> wrote in message
news:OT**************@TK2MSFTNGP12.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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]

modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile)

+945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain() +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.greeble.com> wrote in message
news:OT**************@TK2MSFTNGP12.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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]

modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile)

+945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain() +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.greeble.com> wrote in message
news:OT**************@TK2MSFTNGP12.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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[]

modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile)

+945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain() +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***@dotnetcoders.com> wrote in message
news:eA**************@tk2msftngp13.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.greeble.com> wrote in message
news:OT**************@TK2MSFTNGP12.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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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.
]

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[]

modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile) +945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain() +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**************@TK2MSFTNGP11.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***@dotnetcoders.com> wrote in message
news:eA**************@tk2msftngp13.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.greeble.com> wrote in message
news:OT**************@TK2MSFTNGP12.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.greeble.com
(remove NOSPAM. from my e-mail address for a direct reply)


"Kevin Spencer" <ke***@takempis.com> wrote in message
news:uG**************@TK2MSFTNGP12.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.
> ]
>
> [TargetInvocationException: Exception has been thrown by the target of an
> invocation.]
> System.RuntimeType.InvokeDispMethod(String name, BindingFlags
invokeAttr,
> Object target, Object[] args, Boolean[] byrefModifiers, Int32
culture, > String[] namedParameters) +0
> System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, > Binder binder, Object target, Object[] args, ParameterModifier[]
modifiers,
> CultureInfo culture, String[] namedParameters) +473
> System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String > methodName, Object[] args) +58
>
> [HttpException (0x80004005): Could not access 'CDO.Message' object.]
> System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String > methodName, Object[] args) +112
> System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
> System.Web.Mail.SmtpMail.Send(MailMessage message) +150
> SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile) +945
> SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender,

EventArgs
> e) +2109
> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
>
>

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePo
> stBackEvent(String eventArgument) +57
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
> sourceControl, String eventArgument) +18
> System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
> System.Web.UI.Page.ProcessRequestMain() +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.public.dotnet.framework.aspnet
NNTP-Posting-Host: dynamicsystems.com 216.54.1.213
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163075
X-Tomcat-NG: microsoft.public.dotnet.framework.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.
]

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr,Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile) +945 SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgs
e) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108

System.Web.UI.WebControls.Button.System.Web.UI.IP ostBackEventHandler.RaiseP ostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +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******@online.microsoft.com> wrote in message
news:6H**************@cpmsftngxa06.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.public.dotnet.framework.aspnet
NNTP-Posting-Host: dynamicsystems.com 216.54.1.213
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163075X-Tomcat-NG: microsoft.public.dotnet.framework.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.]

[TargetInvocationException: Exception has been thrown by the target of an
invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,CultureInfo culture, String[] namedParameters) +473
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +58

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
methodName, Object[] args) +112
System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
System.Web.Mail.SmtpMail.Send(MailMessage message) +150
SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile)

+945
SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender, EventArgse) +2109
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108


System.Web.UI.WebControls.Button.System.Web.UI.IP ostBackEventHandler.RaiseP
o
stBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33 System.Web.UI.Page.ProcessRequestMain() +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.public.dotnet.framework.aspnet
NNTP-Posting-Host: dynamicsystems.com 216.54.1.213
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163167
X-Tomcat-NG: microsoft.public.dotnet.framework.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******@online.microsoft.com> wrote in message
news:6H**************@cpmsftngxa06.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.public.dotnet.framework.aspnet
>NNTP-Posting-Host: dynamicsystems.com 216.54.1.213
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
>Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.framework.aspnet:163075 >X-Tomcat-NG: microsoft.public.dotnet.framework.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. >]
>
>[TargetInvocationException: Exception has been thrown by the target of an >invocation.]
> System.RuntimeType.InvokeDispMethod(String name, BindingFlags

invokeAttr,
>Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture,
>String[] namedParameters) +0
> System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
>Binder binder, Object target, Object[] args, ParameterModifier[]modifiers, >CultureInfo culture, String[] namedParameters) +473
> System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
>methodName, Object[] args) +58
>
>[HttpException (0x80004005): Could not access 'CDO.Message' object.]
> System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String
>methodName, Object[] args) +112
> System.Web.Mail.CdoSysHelper.Send(MailMessage message) +1846
> System.Web.Mail.SmtpMail.Send(MailMessage message) +150
> SATSNET.iMemberRegistration.SendMembershipMailRepl y(Object iProfile)

+945
> SATSNET.iMemberRegistration.funcSaveMemberInfo(Obj ect Sender,EventArgs >e) +2109
> System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
>


System.Web.UI.WebControls.Button.System.Web.UI.I PostBackEventHandler.Raise P
o
>stBackEvent(String eventArgument) +57
> System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
>sourceControl, String eventArgument) +18
> System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData)

+33 > System.Web.UI.Page.ProcessRequestMain() +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
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...
4
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:...
6
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...
5
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
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 =...
0
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: ...
9
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...
1
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. ...
2
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. ...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.