Recover password exception

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/18/2007 7:32:07 AM
Gravatar
Total Posts 488

Recover password exception

After entering login/email on /Secure/RecoverPassword.aspx I get an exception:

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

After investigation of the stack trace I saw that it was because I did not configure SMTP setting to send the password.
I think it is better to write some error message instead of throwing an unhandled exception in this case.
1/18/2007 11:25:03 AM
Gravatar
Total Posts 18439

Re: Recover password exception

I have added handling for mail errors in svn branches/2.x

Thanks,

Joe
1/19/2007 5:33:46 AM
Gravatar
Total Posts 488

Re: Recover password exception

The message does not seem to be correct.
Now it is the following:

"Sorry, your password could not be sent because the server was unable to send the message due  to a configuration error. Please notify the Site Administrator. The error has been logged."

But according to the code it is displayed in case any error with sending the email message occurs.
It would be nice (and more correct) to change it like

"Sorry, your password could not be sent because the server was unable to send the message. Please try again in a few minutes. Contact the Site Administrator if the problem persists."
1/19/2007 7:41:09 AM
Gravatar
Total Posts 18439

Re: Recover password exception

Ok, I modified the wording so as not say its a configuration error but in actuality that is the only likely cause of an error here. The only exceptions I was able to raise were unable to resolve host and sockets exception both caused by misconfiguration. The error does get logged in Data/currentlog.config

Joe
1/19/2007 8:37:09 AM
Gravatar
Total Posts 488

Re: Recover password exception

It can be also some issue with SMTP server itself configuration.
For example, SMTP server on my work refuses to send e-mail if one in the "from" field is not from our domain.
1/19/2007 9:07:24 AM
Gravatar
Total Posts 18439

Re: Recover password exception

That still boils down to configuration error, nevertheless I have removed that wording from the message.



Joe
You must sign in to post in the forums. This thread is closed to new posts.