Click here to Skip to main content
13,293,178 members (42,497 online)
Rate this:
Please Sign up or sign in to vote.
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: ''"

error page

Server Error in '/soldier editable' Application.
The remote name could not be resolved: ''
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: ''

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: '']
   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 5:24am
Updated 13-Apr-12 0:45am
B Birajdar 6-Apr-12 10:31am
"why" ? Is the question to we people or to your computer ?
B Birajdar 6-Apr-12 10:32am
Post your relevant code and the exception message.
ryanb31 6-Apr-12 11:14am
Why? Because you did something wrong. Would you like us to help? OK, then please provide the error.
SAKryukov 6-Apr-12 14:24pm
Not enough information. Are you capable of the simplest reflection to understand it?
ryanb31 12-Apr-12 11:31am
What is the error?
Chauhan_Yatin 13-Apr-12 2:19am
find that u proper write that with password or username ..and what is the error??

1 solution

Rate this: bad
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...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171207.1 | Last Updated 13 Apr 2012
Copyright © CodeProject, 1999-2017
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