Click here to Skip to main content
15,908,445 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Checking Scripts Enabled Pin
Sandeep Akhare18-Apr-07 23:20
Sandeep Akhare18-Apr-07 23:20 
QuestionOn submit, I am facing error: [NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText(UltraGridColumn column) Pin
Ashish Tijare18-Apr-07 3:11
Ashish Tijare18-Apr-07 3:11 
AnswerRe: On submit, I am facing error: [NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText(UltraGridColumn column) Pin
kubben18-Apr-07 3:17
kubben18-Apr-07 3:17 
GeneralRe: On submit, I am facing error: [NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.UltraGridRow.GetCellText(UltraGridColumn column) Pin
Ashish Tijare18-Apr-07 3:28
Ashish Tijare18-Apr-07 3:28 
QuestionHow to send Mail in ASP.Net 2.0 Pin
Kuricheti18-Apr-07 2:57
Kuricheti18-Apr-07 2:57 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
kubben18-Apr-07 3:00
kubben18-Apr-07 3:00 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Sandeep Kumar18-Apr-07 3:09
Sandeep Kumar18-Apr-07 3:09 
QuestionRe: How to send Mail in ASP.Net 2.0 [modified] Pin
Kuricheti18-Apr-07 19:24
Kuricheti18-Apr-07 19:24 
Hi Sandeep,
Thankyou for the code, but it is giving the below error.
An established connection was aborted by the software in your host machine 
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.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine

Source Error: 


Line 33:         message.Body = "This is the message body";
Line 34:         System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(HostName);
Line 35:         smtp.Send(message);
Line 36: 
Line 37: 
Source File: c:\Inetpub\wwwroot\Phase1&2Backup23Mar\SendMail.aspx.cs    Line: 35 
Stack Trace: 
[SocketException (0x2745): An established connection was aborted by the software in your host machine]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +200
   System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) +60
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +579

[WebException: Unable to connect to the remote server]
   System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +391
   System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +288
   System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +46
   System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +429
   System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +332
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +287
   System.Net.Mail.SmtpClient.GetConnection() +56
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1672

[SmtpException: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2237
   SendMail.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Phase1&2Backup23Mar\SendMail.aspx.cs:35
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +31
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +68
   System.Web.UI.Control.OnLoad(EventArgs e) +88
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3038


How to resolve this.....

Thanks
Hari


-- modified at 2:20 Thursday 19th April, 2007
GeneralRe: How to send Mail in ASP.Net 2.0 Pin
Sandeep Kumar18-Apr-07 19:56
Sandeep Kumar18-Apr-07 19:56 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Abolfazl Sheikhloo18-Apr-07 3:17
Abolfazl Sheikhloo18-Apr-07 3:17 
AnswerRe: How to send Mail in ASP.Net 2.0 Pin
Sathesh Sakthivel18-Apr-07 20:01
Sathesh Sakthivel18-Apr-07 20:01 
Questiondatalist paging Pin
saravanan0518-Apr-07 2:52
saravanan0518-Apr-07 2:52 
AnswerRe: datalist paging Pin
enjoycrack18-Apr-07 7:11
enjoycrack18-Apr-07 7:11 
QuestionAuthorize.net Transaction Number Pin
wEb GuRu...18-Apr-07 1:20
wEb GuRu...18-Apr-07 1:20 
Questionhow to create virtual directory? Pin
piya00718-Apr-07 1:02
piya00718-Apr-07 1:02 
AnswerRe: how to create virtual directory? Pin
Sandeep Kumar18-Apr-07 1:36
Sandeep Kumar18-Apr-07 1:36 
GeneralRe: how to create virtual directory? Pin
Atif Ali Bhatti18-Apr-07 2:39
Atif Ali Bhatti18-Apr-07 2:39 
GeneralRe: how to create virtual directory? Pin
enjoycrack18-Apr-07 7:13
enjoycrack18-Apr-07 7:13 
Questionasp.net 2.0 + C# Pin
ritu432118-Apr-07 0:39
ritu432118-Apr-07 0:39 
AnswerRe: asp.net 2.0 + C# Pin
enjoycrack18-Apr-07 7:14
enjoycrack18-Apr-07 7:14 
GeneralRe: asp.net 2.0 + C# Pin
ritu432118-Apr-07 19:41
ritu432118-Apr-07 19:41 
GeneralRe: asp.net 2.0 + C# Pin
enjoycrack19-Apr-07 3:27
enjoycrack19-Apr-07 3:27 
QuestionWith out scroll tab need page...... Pin
Member 387988118-Apr-07 0:22
Member 387988118-Apr-07 0:22 
AnswerRe: With out scroll tab need page...... Pin
enjoycrack18-Apr-07 7:17
enjoycrack18-Apr-07 7:17 
QuestionSERVER APPLICATION ERROR Pin
piya00718-Apr-07 0:16
piya00718-Apr-07 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.