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