Open Closed

Not able to Access Source Code #4524


User avatar
0
Jatinder.singh created

Hello team,

using Microservices template I want to ask that in any service how we can access the source code ? and which module we have to embed on which service.

Plaese help me asap

Thanks


7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can download the source code via ABP Suite : https://docs.abp.io/en/commercial/latest/abp-suite/source-code

  • User Avatar
    0
    Jatinder.singh created

    I am unable to get this method in source code https://localhost:44325/api/setting-management/emailing/send-test-email

    could you please also share email configuration steps ? could you please elaborate which module embedd in which microservice

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    could you please also share email configuration steps ?

    What's the error log?

    This is the document:https://docs.abp.io/en/abp/latest/Emailing#email-settings And we have an example you can use to check whether the email settings are correct: https://github.com/abpframework/abp-samples/tree/master/EmailSendDemo

    could you please elaborate which module embedd in which microservice

    You can check the document:

    https://docs.abp.io/en/commercial/latest/startup-templates/microservice/index

  • User Avatar
    0
    Jatinder.singh created

    hello team,

    I could not find any solutions from this documentation link. if possible can we set up a working session, so you can help us over remote?

    Thanks

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, It's better we communicate here, others with this problem will benefit from this too.

    Can you describe your needs in detail, I will try to help you.

  • User Avatar
    0
    Abhishek_Sharma created

    Hi,

    Here's the log file for send email You can check here

    [administration-service_627d2497-e]: System.Net.Mail.SmtpException: Failure sending mail. [administration-service_627d2497-e]: ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time,or established connection failed because connected host has failed to respond. [administration-service_627d2497-e]: at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) [administration-service_627d2497-e]: at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) [administration-service_627d2497-e]: at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state) [administration-service_627d2497-e]: --- End of stack trace from previous location --- [administration-service_627d2497-e]: at System.Threading.Tasks.TaskToApm.End(IAsyncResult asyncResult) [administration-service_627d2497-e]: at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) [administration-service_627d2497-e]: at System.Net.Mail.SmtpConnection.ConnectAndHandshakeAsyncResult.InitializeConnectionCallback(IAsyncResult result) [administration-service_627d2497-e]: --- End of stack trace from previous location --- [administration-service_627d2497-e]: at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result) [administration-service_627d2497-e]: --- End of inner exception stack trace --- [administration-service_627d2497-e]: at Volo.Abp.Emailing.Smtp.SmtpEmailSender.SendEmailAsync(MailMessage mail) [administration-service_627d2497-e]: at Volo.Abp.Emailing.EmailSenderBase.SendAsync(MailMessage mail, Boolean normalize) [administration-service_627d2497-e]: at Volo.Abp.Emailing.EmailSenderBase.SendAsync(String from, String to, String subject, String body, Boolean isBodyHtml) [administration-service_627d2497-e]: at Volo.Abp.SettingManagement.EmailSettingsAppService.SendTestEmailAsync(SendTestEmailInput input) [administration-service_627d2497-e]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() [administration-service_627d2497-e]: at Volo.Abp.GlobalFeatures.GlobalFeatureInterceptor.InterceptAsync(IAbpMethodInvocation invocation) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) [administration-service_627d2497-e]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() [administration-service_627d2497-e]: at Volo.Abp.Authorization.AuthorizationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) [administration-service_627d2497-e]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() [administration-service_627d2497-e]: at Volo.Abp.Auditing.AuditingInterceptor.ProceedByLoggingAsync(IAbpMethodInvocation invocation, AbpAuditingOptions options, IAuditingHelper auditingHelper, IAuditLogScope auditLogScope) [administration-service_627d2497-e]: at Volo.Abp.Auditing.AuditingInterceptor.InterceptAsync(IAbpMethodInvocation invocation) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) [administration-service_627d2497-e]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() [administration-service_627d2497-e]: at Volo.Abp.Validation.ValidationInterceptor.InterceptAsync(IAbpMethodInvocation invocation) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) [administration-service_627d2497-e]: at Castle.DynamicProxy.AsyncInterceptorBase.ProceedAsynchronous(IInvocation invocation, IInvocationProceedInfo proceedInfo) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAbpMethodInvocationAdapter.ProceedAsync() [administration-service_627d2497-e]: at Volo.Abp.Uow.UnitOfWorkInterceptor.InterceptAsync(IAbpMethodInvocation invocation) [administration-service_627d2497-e]: at Volo.Abp.Castle.DynamicProxy.CastleAsyncAbpInterceptorAdapter1.InterceptAsync(IInvocation invocation, IInvocationProceedInfo proceedInfo, Func3 proceed) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) [administration-service_627d2497-e]: at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) [administration-service_627d2497-e]: [12:37:12 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'. [administration-service_627d2497-e]: [12:37:12 INF] Executed action Volo.Abp.SettingManagement.EmailSettingsController.SendTestEmailAsync (Volo.Abp.SettingManagement.HttpApi) in 21144.5908ms [administration-service_627d2497-e]: [12:37:12 INF] Executed endpoint 'Volo.Abp.SettingManagement.EmailSettingsController.SendTestEmailAsync (Volo.Abp.SettingManagement.HttpApi)' [administration-service_627d2497-e]: [12:37:12 DBG] Added 0 entity changes to the current audit log [administration-service_627d2497-e]: [12:37:12 INF] Request finished HTTP/1.1 POST https://localhost:44367/api/setting-management/emailing/send-test-email application/json 124 - 500 - application/json;+charset=utf-8 21156.0068ms

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    A connection attempt failed because the connected party did not properly respond after a period of time,or established connection failed because connected host has failed to respond

    It looks like your email configuration is wrong.

    You can use the example to check your email config: https://github.com/abpframework/abp-samples/blob/master/EmailSendDemo/src/EmailSendDemo/Program.cs

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09