Base solution for your next web application
Open Closed

SendTestEmail: Server responded with a status of 500 (Internal Server Error) #6668


User avatar
0
BusinessIQ created

Version: v6.7.0.0 DB: MSSQL

Fairly new to ASP.NET Zero. Got the app running on a production server, however not able to send any SMTP messages. I read that smtp messages are disabled in debug mode. The documentation is somewhat scattered and its hard to figure even basic stuff.

How do i enable a debug log on the server?

Also registering new tenants from the web is not working, while its working fine in debug mode.


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Server side log file (App_Data/Logs/Logs.txt) should contain a detailed error message, could you check that ?

  • User Avatar
    0
    BusinessIQ created

    My ISP has blocked all SMTP traffic. It has to pass through their servers. So the logon information is provide to their server and they are actually relaying it.

    MailKit.Security.AuthenticationException: 535: 5.7.8 Error: authentication failed: authentication failure ---> MailKit.Net.Smtp.SmtpCommandException: 5.7.8 Error: authentication failed: authentication failure --- End of inner exception stack trace --- at MailKit.Net.Smtp.SmtpClient.<AuthenticateAsync>d__65.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MailKit.Net.Smtp.SmtpClient.Authenticate(Encoding encoding, ICredentials credentials, CancellationToken cancellationToken) at MailKit.MailService.Authenticate(Encoding encoding, String userName, String password, CancellationToken cancellationToken) at Abp.MailKit.DefaultMailKitSmtpBuilder.ConfigureClient(SmtpClient client) at MyVenue.Net.Emailing.MyVenueMailKitSmtpBuilder.ConfigureClient(SmtpClient client) at Abp.MailKit.DefaultMailKitSmtpBuilder.Build() at Abp.MailKit.MailKitEmailSender.BuildSmtpClient() at Abp.MailKit.MailKitEmailSender.<SendEmailAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Net.Mail.EmailSenderBase.<SendAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.Net.Mail.EmailSenderBase.<SendAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MyVenue.Configuration.SettingsAppServiceBase.<SendTestEmail>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at lambda_method(Closure , Object ) at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult() at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableResultExecutor.<Execute>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__24.MoveNext()

  • User Avatar
    0
    BusinessIQ created

    The log was helpful. Its working now :)

    Im using office 365:

    server: smtp.office365.com port: 587 Use SSL to true

  • User Avatar
    0
    BusinessIQ created

    The the new registration is also working fine now. Thanks