Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey guys,
i added a recover password control to my webpage ... but when i test it , show me this error !

CSS
No connection could be made because the target machine actively refused it 127.0.0.1:25


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: No connection could be made because the target machine actively refused it 127.0.0.1:25

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.




how can i solve it? please help!
i enter my admin and security question correctly!
tnx all
Posted
Comments
[no name] 17-Jul-12 17:29pm    
"how can i solve it"... personally, I would start by examining the stack trace that you seem to think is unimportant.
WoodenLegNamedSmith 17-Jul-12 17:37pm    
I agree, where is the stack trace?
db7uk 17-Jul-12 17:46pm    
Yes, it would be better to show the code where you have the exception, show the stack and more importantly show the config file

Verify that your SMTP service is allowing connections (looks like your SMTP service should be hosted on local machine from error 127.0.0.1:25 localhost=127.0.0.1 SMTP well known port=25)

Quote:
An existing connection was forcibly closed by the remote host.]

This shows that your SMTP service might be rejecting your connection for some reason.

Depending on your SMTP service

1) check to see if relaying is allowed
2) check to make sure connections are allowed from localhost
3) if you have black list check and make sure 127.0.0.1 isn't blacklisted
4) check if smtp authentication is required
5) sometimes depending on anti-virus SMTP service might be blocked

etc.
 
Share this answer
 
i contacted to yahoo support chat service !
i discuss about this with them and they said i should use mail plus service!
the server that you use for sending emails to users mail must give you permission !
yahoo give you this permission with upgrade your yahoo mail to mail plus...
mail plus allow you to use yahoo smtp service :)
and something else is that you should enter on your config file something like this code :
HTML
<system.net>
        <mailsettings>
            <smtp from="YourYahooID@yahoo.com"> 
              <network host="smtp.mail.yahoo.com" port="465"
                  enableSsl="true" defaultCredentials="true"/>
            </smtp>
        </mailsettings>
</system.net>


gud luck !
 
Share this answer
 
v3

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