Click here to Skip to main content
15,896,444 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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:
C#
[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
Updated 12-Apr-12 23:45pm
v6
Comments
bbirajdar 6-Apr-12 10:31am    
"why" ? Is the question to we people or to your computer ?
bbirajdar 6-Apr-12 10:32am    
Post your relevant code and the exception message.
ZurdoDev 6-Apr-12 11:14am    
Why? Because you did something wrong. Would you like us to help? OK, then please provide the error.
Sergey Alexandrovich Kryukov 6-Apr-12 14:24pm    
Not enough information. Are you capable of the simplest reflection to understand it?
--SA
ZurdoDev 12-Apr-12 11:31am    
What is the error?

1 solution

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...
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900