I have a feedback form in my website with three TextBoxes and a SEND button
in a user control.
Below is a piece of the code:
//On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " +
this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form
without any problem. When I upload it to my host service (obviously
modifying accordingly the SMTP) I
Server Error in '/' Application.
--------------------------------------------------------------------------------
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:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server.
etc.etc.
The Hosting Service claims that is my code , but I cannot find anything
wrong with it.( considering that works with my IIS).but I don't like to say
that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this
problem?
thank you in advance for your help 6 1636
Zagor,
I don't have any suggestions for you but I'm wondering why you are getting
an Interop services exception. Is the mail object a COM object?
-Frank Mamone
"Zagor" <za***@sympatico.ca> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND
button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. --------------------------------------------------------------------------
------ 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to
say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve
this problem? thank you in advance for your help
Like Frank I have little to offer.
Some people have had luck solving mail issues by setting the smtp server
via:
SmtpMail.SmtpServer.Insert(0, SMTP_SERVER);
The first question that popped into my mind was "are you sure you have the
correct SMTP_SERVER" and "does it require authentication" ? Also, you could
ask your ISP to look into their smtp server logs to help identify the
problem. If they don't go for that, use a 3rd party mailserver dll which
supports logging and look at the logs. For example you could use http://www.exclamationsoft.com/excla...et/default.asp which
has a demo and supports logging..dunno if you'll get any additional
information, but worth a try.
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Zagor" <za***@sympatico.ca> wrote in message
news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND
button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. --------------------------------------------------------------------------
------ 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to
say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve
this problem? thank you in advance for your help
Hi Frank,
the MailMessage is not an COM object,
actually is a memeber of System.Web.Mail.MailMessage
"Provides properties and methods for constructing an e-mail message" in C#
I do not know the origin of this kind of exception.
I am trying to read everywhere to see if anybody had the same or similar
problem.
Thank you for your time
Francesco
"Frank Mamone" <fr**********@canada.com> wrote in message
news:e6**************@TK2MSFTNGP09.phx.gbl... Zagor,
I don't have any suggestions for you but I'm wondering why you are getting an Interop services exception. Is the mail object a COM object?
-Frank Mamone
"Zagor" <za***@sympatico.ca> wrote in message news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. -------------------------------------------------------------------------- ------ 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to
say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this problem? thank you in advance for your help
Hi Karl,
I will try your suggestion.
Regarding the SMTP_SERVER is correct , this is the one supplied by the
Hosting Service ( which is for the last 10 days) I am trying to understand
where the problem is. As I said , If use the IIS and the SMTP server
provided by my ISP, everything works fine. The problem arises when I upload
the file to the Hosting company.
Anyhow, thank you for your time
Francesco
"Karl" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> wrote in
message news:Ok*************@tk2msftngp13.phx.gbl... Like Frank I have little to offer.
Some people have had luck solving mail issues by setting the smtp server via: SmtpMail.SmtpServer.Insert(0, SMTP_SERVER);
The first question that popped into my mind was "are you sure you have the correct SMTP_SERVER" and "does it require authentication" ? Also, you could ask your ISP to look into their smtp server logs to help identify the problem. If they don't go for that, use a 3rd party mailserver dll which supports logging and look at the logs. For example you could use http://www.exclamationsoft.com/excla...et/default.asp which has a demo and supports logging..dunno if you'll get any additional information, but worth a try.
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"Zagor" <za***@sympatico.ca> wrote in message news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. -------------------------------------------------------------------------- ------ 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to
say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this problem? thank you in advance for your help
This site is usually recommended for trouble shooting: http://www.systemwebmail.com/
HTH,
Greg
"Zagor" <za***@sympatico.ca> wrote in message
news:%2***************@tk2msftngp13.phx.gbl... Hi Frank, the MailMessage is not an COM object,
actually is a memeber of System.Web.Mail.MailMessage
"Provides properties and methods for constructing an e-mail message" in C#
I do not know the origin of this kind of exception.
I am trying to read everywhere to see if anybody had the same or similar problem.
Thank you for your time
Francesco
"Frank Mamone" <fr**********@canada.com> wrote in message news:e6**************@TK2MSFTNGP09.phx.gbl... Zagor,
I don't have any suggestions for you but I'm wondering why you are getting an Interop services exception. Is the mail object a COM object?
-Frank Mamone
"Zagor" <za***@sympatico.ca> wrote in message news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. -------------------------------------------------------------------------- ------ 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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to
say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this problem? thank you in advance for your help
Thanks, Greg I hope I can find some light there.
"Greg Burns" <greg_burns@DONT_SPAM_ME_hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... This site is usually recommended for trouble shooting:
http://www.systemwebmail.com/
HTH, Greg
"Zagor" <za***@sympatico.ca> wrote in message news:%2***************@tk2msftngp13.phx.gbl... Hi Frank, the MailMessage is not an COM object,
actually is a memeber of System.Web.Mail.MailMessage
"Provides properties and methods for constructing an e-mail message" in C#
I do not know the origin of this kind of exception.
I am trying to read everywhere to see if anybody had the same or similar problem.
Thank you for your time
Francesco
"Frank Mamone" <fr**********@canada.com> wrote in message news:e6**************@TK2MSFTNGP09.phx.gbl... Zagor,
I don't have any suggestions for you but I'm wondering why you are getting an Interop services exception. Is the mail object a COM object?
-Frank Mamone
"Zagor" <za***@sympatico.ca> wrote in message news:et**************@TK2MSFTNGP11.phx.gbl... I have a feedback form in my website with three TextBoxes and a SEND button in a user control. Below is a piece of the code: //On click event for the send LinkButton
private void SendClicked(object sender, EventArgs e){
try{
if (Page.IsValid){
SendMail();
Response.Redirect("notify.aspx?Notify:Pass");}
}
catch(Exception ex){..................whatever}
//Actual code for sending the EMail
private void SendMail()
{
MailMessage objEmail = new MailMessage();
objEmail.From = this.tbEMail.Text;
objEmail.Priority = System.Web.Mail.MailPriority.High;
objEmail.To = TO_ADDRESS;//whatever
objEmail.Subject = SUBJECT_TEXT ;//whatever
objEmail.Body = "\nName :" + this.tbFullName.Text + "\nEMail: " + this.tbEMail.Text +"\n\nMessage:"+this.tbMessage.Text;
objEmail.BodyFormat = MailFormat.Text;
SmtpMail.SmtpServer = SMTP_SERVER; //whatever is the smtp
SmtpMail.Send( objEmail );
objEmail = null;
}
if I use it with my ISP on my IIS everything is fine I can send the form without any problem. When I upload it to my host service (obviously modifying accordingly the SMTP) I Server Error in '/' Application. -------------------------------------------------------------------------- ------
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80040213): The transport failed to connect to the server. etc.etc.
The Hosting Service claims that is my code , but I cannot find anything wrong with it.( considering that works with my IIS).but I don't like to say that they are wrong until I am positive that I am not.
Can anybody help me please and give me more information on how to solve this problem? thank you in advance for your help
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mindful_Spirit |
last post by:
I'm trying to set up a basic email feed back form
like
this, and was wondering about some basic configuration settings. I
have used code from
this
website. I have it working just fine. I'm...
|
by: Armand Karlsen |
last post by:
On one page of a site I'm doing for a college project, I have a feedback
form:
http://www.zen62775.zen.co.uk/Test/contact/contact_feedback.html
All parts of this page validate, except for the...
|
by: Patrick De Ridder |
last post by:
I use a form with text boxes. The user enters data in the text boxes.
The data is written away to a file. I wish to give the user feedback
on the form, before the data is written away to the file -...
|
by: Michiel Alsters |
last post by:
Hello everybody,
I hope anybody can help me. I'll try to give a brief overview of my
problem. I have running a program that performs a heavy calculation.
To give the user feedback what the...
|
by: clintonG |
last post by:
I'm wondering if anybody has figured out how to implement this feedback
methodology which displays Characters Remaining when using the
TextBox TextMode="MultiLine" attribute which will cause the...
|
by: ianbarton |
last post by:
Hello all
I am trying to setup a feedback form on my webpage using some script
provided by my ISP. I really don't know a lot about PHP and it's syntax
etc.
The feedback form only has 4...
|
by: lali |
last post by:
hi everybody,
i am doing a project and i have strucked in middle of my code usiong asp.
the problem is, in the feedback form there are many fields which are manidatory.when an user fills the form...
|
by: gs |
last post by:
the feedback for the install of c#2008 places 97 to 99% cpu load for way too
long on athlon x64 3800+ PC. 3/4 an hour later its only about 80% complete,
continuing with 98% CPU load!
Next time...
|
by: gnawz |
last post by:
I have a feedback form code which does email but does not display the correct content.
In place of the email address, it displays "+1"
And the body message is "1"
It works well when I test...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |