Base solution for your next web application

Activities of "alirizaadiyahsi"

Hi @JCompagnoni it seems everything is OK. I suggest you to make sure your phone and computer the host project is running on. Some times firewall or virus program block the connection.

You can test whether your phone can connect to host by browsing host IP. Open a browser in your phone and type Local IP that you set in DebugServerIpAdresses.cs.

Hi @Etender, I think you mean ASP.NET MVC 5.x / Angularjs 1.x. If so, there is Bearer Token Authentication in this project.

<a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Zero/Startup-Template#token-based-authentication">https://aspnetboilerplate.com/Pages/Doc ... entication</a>

It seems it doesn't work on Edge. I opened an issue here : <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/730">https://github.com/aspnetzero/aspnet-ze ... issues/730</a>

If you can't see logs in *.Host/App_Data/Logs/Logs.txt, could you make sure that folder read/write permissions are given?

Hi @brallierc,

Thanks for feedback.

Glad it help.

Hi @andreyzag, actually gulp did not stop. It continues to work. There are some functions like build, minify, bundle, copy. After run all these methods, it continues to work to watch changes. If you change any css or js file and save it, you can see gulp is watching changes.

Hi @affern, could you check *.Host/AppData/Logs/Logs.txt to understand what errors are occured?

It seems there is no problem with your code. Are you sure your refresh service proxies after added new application services to *.Application project? I mean did you run /angular/nswag/refresh.bat?

Answer

Hi @Verrrrrrrrrrrrrdi, you can use CustomData field for your additional fields. And also you can use ClientName for your ApplicationName filed.

Unfortunately you can't use existing AuditingStore to save extended AuditLog entity. Even if you pass ExtendedAuditLog entity, it is converted to new AuditEntity in AuditingStore. Because there are following lines in AuditingStore in ABP:

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/bc266e3503fcb2825684ec829cc356815f94f397/src/Abp.Zero.Common/Auditing/AuditingStore.cs">https://github.com/aspnetboilerplate/as ... ngStore.cs</a>

public virtual Task SaveAsync(AuditInfo auditInfo)
        {
            return _auditLogRepository.InsertAsync(AuditLog.CreateFromAuditInfo(auditInfo));
        }

<a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/blob/bc266e3503fcb2825684ec829cc356815f94f397/src/Abp.Zero.Common/Auditing/AuditLog.cs">https://github.com/aspnetboilerplate/as ... uditLog.cs</a>

public static AuditLog CreateFromAuditInfo(AuditInfo auditInfo)
        {
            var exceptionMessage = auditInfo.Exception != null ? auditInfo.Exception.ToString() : null;
            return new AuditLog
                   {
                       TenantId = auditInfo.TenantId,
                       UserId = auditInfo.UserId,
                       ServiceName = auditInfo.ServiceName.TruncateWithPostfix(MaxServiceNameLength),
                       MethodName = auditInfo.MethodName.TruncateWithPostfix(MaxMethodNameLength),
                       Parameters = auditInfo.Parameters.TruncateWithPostfix(MaxParametersLength),
                       ExecutionTime = auditInfo.ExecutionTime,
                       ExecutionDuration = auditInfo.ExecutionDuration,
                       ClientIpAddress = auditInfo.ClientIpAddress.TruncateWithPostfix(MaxClientIpAddressLength),
                       ClientName = auditInfo.ClientName.TruncateWithPostfix(MaxClientNameLength),
                       BrowserInfo = auditInfo.BrowserInfo.TruncateWithPostfix(MaxBrowserInfoLength),
                       Exception = exceptionMessage.TruncateWithPostfix(MaxExceptionLength),
                       ImpersonatorUserId = auditInfo.ImpersonatorUserId,
                       ImpersonatorTenantId = auditInfo.ImpersonatorTenantId,
                       CustomData = auditInfo.CustomData.TruncateWithPostfix(MaxCustomDataLength)
                   };
        }
Showing 111 to 120 of 369 entries