MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

User registration, OAuth and install from zip (Zatvorena) (Mono Support )

121264 put(a) pogledan, 27 odgovor(a) 28.5.2014. 8:14:01Kreirao(la) PsMaster

Povezane teme

PsMaster

PsMaster

13.6.2014. 14:43:19
So I did a fresh reinstall and a new database, changed the config SMTP settings and tried to register a new user.
1) The new user does not get created at all now and gets the same error mentioned before. Tried testing all the settings again, changed ports, security modes, alternate domain for mail, nothing works. Using the next C# code to send mail from my own website when registering (same smtp settings yet it works):
var mail = new MailMessage();
mail.To.Add("whatever@mail.com");
mail.From = new MailAddress("some@mail.com");
//subject body etc.
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess;
var client = new SmtpClient();
client.EnableSsl = false;
client.Host = "wixteria host name";
client.Port = 26
client.Credentials = new NetworkCredential(user,pass); //from config same as host and other hardcoded values
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.Send(mail);

2) Solved the issue with image upload and it not displaying, seems the ShowBlogGravatars set to true was overriding everything. Setting it to false fixes the image issue.

3) passwordFormat="Hashed", enablePasswordRetrieval="false". Admins still able to see user passwords in plain text...

I'll try to see what's in the logs tomorrow, I can't open/copy the logs from current day since those are in use by the application.
Ovaj sadržaj još nije ocijenjen. 
95 Reputacija 13 Ukupno objava
Zoomicon

Zoomicon

14.6.2014. 13:43:18
watch out for the From field - some mail servers require that the e-mail there is the same as the one for the credentials you used to log in to the mail server
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
mzilic

mzilic

16.6.2014. 9:46:43
Hello,

Can you check the most recent logs and see if the same error is thrown. Also, can you check and see if this setting in the web.config is also set to false:
<add key="EnableSmtpSSL" value="false" />
Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
PsMaster

PsMaster

16.6.2014. 15:11:31
Hello,

I did try to toggle that option to true/false too, doesn't seem to impact anything, but I just checked the logs right after fresh install and I get an System.ApplicationException: An unknown error occured. The account could not be created, please try again later. If the problem persists, please contact us. [InvalidAnswer].
Attached the full log.
Seems like it's not even getting to the mail sending now.
Ovaj sadržaj još nije ocijenjen. 
95 Reputacija 13 Ukupno objava
mzilic

mzilic

16.6.2014. 15:52:51
Hello,

MonoX doesn't use the following settings out of the box. Please set the requiresQuestionAndAnswer from true to false in web.config. Ex:
requiresQuestionAndAnswer="false"
Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
PsMaster

PsMaster

16.6.2014. 19:21:18
MZILIC, thanks, requiresQuestionAndAnswer="false" registers the user now (strange how those settings worked before the reinstall). Still getting error with the emails, tried these settings:
<add key="EnableSmtpSSL" value="false" /> , port="26" enableSsl="false"
<add key="EnableSmtpSSL" value="true" /> , port="26" enableSsl="true"
<add key="EnableSmtpSSL" value="false" /> , port="465" enableSsl="false"
<add key="EnableSmtpSSL" value="true" /> , port="465" enableSsl="true"

On port 26 (which works with the code I posted before) I get instant response with the error.
On port 465 (provided by wisteria for secure smtp) I get to wait about 30 seconds for the same error.

Not sure anymore if I'm missing something in the settings or it's just the SMTP server not working for some reason...
Ovaj sadržaj još nije ocijenjen. 
95 Reputacija 13 Ukupno objava
mzilic

mzilic

17.6.2014. 9:13:31
The code sample you posted, did you run that from the same server where MonoX is installed?

Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
PsMaster

PsMaster

17.6.2014. 12:11:23
Yes, it's from the same server, just different sub-domain.
Port 465 (secure) gets a timeout error in the logs, explains the waiting time for the response at least.
Ovaj sadržaj još nije ocijenjen. 
95 Reputacija 13 Ukupno objava
mzilic

mzilic

20.6.2014. 16:48:39
Hello,

Is the mail server on a different domain? Could you post the logs again please? Last error logs indicated that your SMTP server was refusing connection to MonoX. Also can you share more information regarding the server where MonoX is hosted and mailserver.

Regards,
Mario
Ovaj sadržaj još nije ocijenjen. 
2218 Reputacija 300 Ukupno objava
PsMaster

PsMaster

25.6.2014. 12:30:17
Attaching the log where I tried to use multiple settings, some time out, some say a secure connection is required.
mail server: http://mail.mydomain.com/
website http://social.mydomain.com/

It's all on a shared environment from arvixe.com so definitely same server.
Ovaj sadržaj još nije ocijenjen. 
95 Reputacija 13 Ukupno objava
1 2 3