Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
password recovery is working on my computer only(password is sending to mail)
 
when i take project to other computer then it shows smtp error
.
 
error is-"The remote name could not be resolved: 'smtp.gmail.com'"
 
error page
 
Server Error in '/soldier editable' Application.
The remote name could not be resolved: 'smtp.gmail.com'
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.WebException: The remote name could not be resolved: 'smtp.gmail.com'
 
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:
[WebException: The remote name could not be resolved: 'smtp.gmail.com']
   System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout) +6054548
   System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback) +314
   System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback) +21
   System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout) +322
   System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) +146
   System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) +170
   System.Net.Mail.SmtpClient.GetConnection() +50
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1484
[SmtpException: Failure sending mail.]
   System.Net.Mail.SmtpClient.Send(MailMessage message) +1811
   System.Web.UI.WebControls.LoginUtil.SendPasswordMail(String email, String userName, String password, MailDefinition mailDefinition, String defaultSubject, String defaultBody, OnSendingMailDelegate onSendingMailDelegate, OnSendMailErrorDelegate onSendMailErrorDelegate, Control owner) +371
   System.Web.UI.WebControls.PasswordRecovery.AttemptSendPasswordQuestionView() +548
   System.Web.UI.WebControls.PasswordRecovery.AttemptSendPassword() +77
   System.Web.UI.WebControls.PasswordRecovery.OnBubbleEvent(Object source, EventArgs e) +103
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +125
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
 
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Posted 6-Apr-12 4:24am
Edited 12-Apr-12 23:45pm
Nelek51.4K
v6
Comments
B Birajdar at 6-Apr-12 10:31am
   
"why" ? Is the question to we people or to your computer ?
B Birajdar at 6-Apr-12 10:32am
   
Post your relevant code and the exception message.
ryanb31 at 6-Apr-12 11:14am
   
Why? Because you did something wrong. Would you like us to help? OK, then please provide the error.
SAKryukov at 6-Apr-12 14:24pm
   
Not enough information. Are you capable of the simplest reflection to understand it?
--SA
ryanb31 at 12-Apr-12 11:31am
   
What is the error?
Chauhan_Yatin at 13-Apr-12 2:19am
   
find that u proper write that smtp@gmail.com with password or username ..and what is the error??

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

DNS is not set up correctly on that computer. That is the meaning of "The remote name could not be resolved".
Just do a ping from a command line...
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 13 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100