Multimobile Development: Building Applications for any Smartphone
Could not access 'CDO.Message' object
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.


RadekP
Greetings All
You are my last hope. Can someone have any thoughts about the below error that I'm getting in V1 on the deployment server trying to send SMTP e-mail from .aspx page ? The same code works well on my local machine. Both : local machine and server are configured to run ASP.NET_WP.exe under high privileged "SYSTEM" account. Probably the remote server is the domain controller if it helps. I think it's still security issue based on that : "Could not access 'CDO.Message' object.".

Any help greatly appreciated.

Radek

=========================The transport failed to connect to the server.
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 transport failed to connect to the server.

Source Error:

Line 738:        //    {
Line 739:                SmtpMail.SmtpServer = ConfigurationSettings.AppSettings["SMTPServer"];
Line 740:                SmtpMail.Send(myMessage);
Line 741:                labMessage.Text = "E-mail sent successfully.";
Line 742:

Source File: \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs Line: 740

Stack Trace:

[COMException (0x80040213): The transport failed to connect to the server.
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +29
System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args)
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
LicGenNew.Generation.btnSend_Click(Object sender, EventArgs e) in \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs:740
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
Rad
Just a guess -- but this would probably fail in "old" ASP as well..

"RadekP" <Click here to reveal e-mail address> wrote in message news:OKslPu5qBHA.2148@tkmsftngp07...
Greetings All
You are my last hope. Can someone have any thoughts about the below error that I'm getting in V1 on the deployment server trying to send SMTP e-mail from .aspx page ? The same code works well on my local machine. Both : local machine and server are configured to run ASP.NET_WP.exe under high privileged "SYSTEM" account. Probably the remote server is the domain controller if it helps. I think it's still security issue based on that : "Could not access 'CDO.Message' object.".

Any help greatly appreciated.

Radek

========================= The transport failed to connect to the server.
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 transport failed to connect to the server.

Source Error:

Line 738:        //    {
Line 739:                SmtpMail.SmtpServer = ConfigurationSettings.AppSettings["SMTPServer"];
Line 740:                SmtpMail.Send(myMessage);
Line 741:                labMessage.Text = "E-mail sent successfully.";
Line 742:

Source File: \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs Line: 740

Stack Trace:

[COMException (0x80040213): The transport failed to connect to the server.
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +29
System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args)
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
LicGenNew.Generation.btnSend_Click(Object sender, EventArgs e) in \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs:740
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0

Reply to this message...
Vote that this is a GOOD answer...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
    
RadekP
Rad ...

An "old" ASP's component JMail just hangs up not generating any response. Strange.
I configured the smtp server as the same server running the aspx and I changed its "Delivery" properties to the server capable of spreading out an e-mails and .. it worked ..

Thanks

Radek

"Rad" <Click here to reveal e-mail address> wrote in message news:AxJ68.37298$Click here to reveal e-mail address...
Just a guess -- but this would probably fail in "old" ASP as well..

"RadekP" <Click here to reveal e-mail address> wrote in message news:OKslPu5qBHA.2148@tkmsftngp07...
Greetings All
You are my last hope. Can someone have any thoughts about the below error that I'm getting in V1 on the deployment server trying to send SMTP e-mail from .aspx page ? The same code works well on my local machine. Both : local machine and server are configured to run ASP.NET_WP.exe under high privileged "SYSTEM" account. Probably the remote server is the domain controller if it helps. I think it's still security issue based on that : "Could not access 'CDO.Message' object.".

Any help greatly appreciated.

Radek

========================= The transport failed to connect to the server.
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 transport failed to connect to the server.

Source Error:

Line 738:        //    {
Line 739:                SmtpMail.SmtpServer = ConfigurationSettings.AppSettings["SMTPServer"];
Line 740:                SmtpMail.Send(myMessage);
Line 741:                labMessage.Text = "E-mail sent successfully.";
Line 742:

Source File: \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs Line: 740

Stack Trace:

[COMException (0x80040213): The transport failed to connect to the server.
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +29
System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args)
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
LicGenNew.Generation.btnSend_Click(Object sender, EventArgs e) in \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs:740
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

----------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0

Reply to this message...
Vote that this is a GOOD answer...
 
 
    
CT
Radek,

I managed to fix the problem by changing the permissions in IIS. Try to see
if you have the same problem, by allowing relaying of messages on the Access
tab of the properties dialog box. If that works for you, well go ahead and
configure your SMTP Virtual Server "correctly".

--
Carsten Thomsen
Database Programming with C#
(http://www.apress.com/catalog/book/1590590104)
http://www.dotnetservices.biz

"RadekP" <Click here to reveal e-mail address> wrote in message
news:e2rgRPErBHA.2560@tkmsftngp04...
Rad ...

An "old" ASP's component JMail just hangs up not generating any response.
Strange.
I configured the smtp server as the same server running the aspx and I
changed its "Delivery" properties to the server capable of spreading out an
e-mails and .. it worked ..

Thanks

Radek

"Rad" <Click here to reveal e-mail address> wrote in message
news:AxJ68.37298$Click here to reveal e-mail address...
Just a guess -- but this would probably fail in "old" ASP as well..

"RadekP" <Click here to reveal e-mail address> wrote in message
news:OKslPu5qBHA.2148@tkmsftngp07...
Greetings All
You are my last hope. Can someone have any thoughts about the below error
that I'm getting in V1 on the deployment server trying to send SMTP e-mail
from .aspx page ? The same code works well on my local machine. Both : local
machine and server are configured to run ASP.NET_WP.exe under high
privileged "SYSTEM" account. Probably the remote server is the domain
controller if it helps. I think it's still security issue based on that :
"Could not access 'CDO.Message' object.".

Any help greatly appreciated.

Radek

==========================
The transport failed to connect to the server.
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
transport failed to connect to the server.

Source Error:

Line 738: // {
Line 739: SmtpMail.SmtpServer =
ConfigurationSettings.AppSettings["SMTPServer"];
Line 740: SmtpMail.Send(myMessage);
Line 741: labMessage.Text = "E-mail sent successfully.";
Line 742:

Source File: \\ptcruiser\wwwroot$\licgennew\generation.aspx.cs Line: 740

Stack Trace:

[COMException (0x80040213): The transport failed to connect to the server.
]

[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.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder
binder, Object target, Object[] args) +29
System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj,
String methodName, Object[] args)
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args)

[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String
methodName, Object[] args)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
LicGenNew.Generation.btnSend_Click(Object sender, EventArgs e) in
\\ptcruiser\wwwroot$\licgennew\generation.aspx.cs:740
System.Web.UI.WebControls.Button.OnClick(EventArgs e)

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePo
stBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0

Reply to this message...
Vote that this is a GOOD answer...
 
First chapters of Multimobile Development book now available on Apress Alpha program
iPad
 
 
System.Collections.Specialized.NameValueCollection
System.Configuration.ConfigurationSettings
System.EventArgs
System.Globalization.CultureInfo
System.Reflection.BindingFlags
System.Reflection.ParameterModifier
System.Reflection.TargetInvocationException
System.Runtime.InteropServices.COMException
System.Type
System.Web.HttpException
System.Web.Mail.MailMessage
System.Web.Mail.SmtpMail
System.Web.UI.IPostBackEventHandler
System.Web.UI.Page
System.Web.UI.WebControls.Button




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734