Base solution for your next web application

Activities of "dexmox"

Hi @ryancyq,

Below is the information, the ApplicationService that is not working is the basic implementation above just an api method that throws new UserFriendlyException

Version : v7.0.0.0 [20190808] Type: Jquery MVC

ApplicationService 1 : - F12 Developer Tools Console Message 500 (Internal Server Error) No Result Object Response Log File (Not Showing Popup Modal on UI):

WARN  2019-08-09 15:28:44,687 [136  ] Mvc.ExceptionHandling.AbpExceptionFilter - [Already Exists]
Abp.UI.UserFriendlyException: [Already Exists]
   at xxx.xxx.xxxAppService.xxx(EntityDto`1 input) in C:\Users\xxxAppService.cs:line 831
   at lambda_method(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   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()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()
INFO  2019-08-09 15:28:44,693 [136  ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO  2019-08-09 15:28:44,694 [136  ] ore.Mvc.Internal.ControllerActionInvoker - Executed action xxx.Services.xxxAppService.xxx (xxx.Application) in 82.7884ms
INFO  2019-08-09 15:28:44,694 [136  ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'xxx.Services.xxxAppService.xxx (xxx.Application)'
INFO  2019-08-09 15:28:44,694 [136  ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 103.9412ms 500 application/json; charset=utf-8

Application Service 2: - F12 Developer Tools Console Message 500 (Internal Server Error) Result Object Received with message Log File (Popup showing UI):

WARN  2019-08-09 15:34:25,098 [201  ] Mvc.ExceptionHandling.AbpExceptionFilter - [Already Exists]
Abp.UI.UserFriendlyException: [Already Exists]
   at xxx.xxx.xxxAppService.xxx(Int64 xId, Int64 xxId, String code) in C:\xxx\xxxAppService.cs:line 955
   at lambda_method(Closure , Object )
   at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
   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()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()
INFO  2019-08-09 15:34:25,098 [201  ] .Mvc.Infrastructure.ObjectResultExecutor - Executing ObjectResult, writing value of type 'Abp.Web.Models.AjaxResponse'.
INFO  2019-08-09 15:34:25,098 [201  ] ore.Mvc.Internal.ControllerActionInvoker - Executed action xxx.xxx.xxxAppService.xxx (xxx.Application) in 97.0023ms
INFO  2019-08-09 15:34:25,098 [201  ] ft.AspNetCore.Routing.EndpointMiddleware - Executed endpoint 'xxx.xxx.xxx.xxx (xxx.Application)'
INFO  2019-08-09 15:34:25,099 [201  ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 155.0018ms 500 application/json; charset=utf-8

Thanks everyone, issue resolved: was a script import causing issue.

Sorry for wasting time.

Hi All,

Just wondering if there is a way to log in as a user - without "Impersonating" the user (without logging out). Think of this as a "swap logged in user to selected user" function ?

Scenario: Logged in user clicks on a button which is example called "swap", and another person then click on log in; is then prompted for a password/pin and user is swapped to another user when password/pin is matched. All privelidges and access are re-evaluated for the user swapped into.

Thanks in advance.

Hi All,

Thanks in advance!

I am trying to switch to using Rider IDE and everything is compiling and launching - web application works but IDE is displaying an error on _ViewStart.cshtml : Cannot resolve symbol 'GetTheme'

After navigating to the same file in VS2019 it also started complaining about not being able to resolve (never complained about this file in 4 months+).

This is the only error in the entire solution, and happens on both IDE's, but both compile and run the application.

Is this a possible bug or a mistake i've made ?

Any solutions would be greatly appreciated.

Rider: l

VS 2019:

No problem's, Thanks @ismcagdas

Hi All,

Thanks in advance for any and all assistance.

I think my issue is to do with passing a parameter to the ajaxFunction appService method. the listAction call works fine if I dont try use a different function without parameters. ( example: appService.GetAllExamplesList() ).

I checked the datatable website, stack overflow, google and the forums, but I have not had any success in finding any examples of loading a datatable with a parameter such as Id.

My DataTable is throwing error : Uncaught TypeError: listAction.ajaxFunction is not a function

I am sure im doing something wrong below in my code, and it should explain what I am trying to achieve if the above was confusing.


var dataTable = $table.DataTable({
        paging: true,
        processing: false,
        stateSave: true,
        searching: true,
        listAction: {
            ajaxFunction: appService.getExampleById(exampleId)           
        },
        columns: [
            {
                 targets: 0,
                 data: "name",
                 render: function (data) {
                     return data;
                }
            }
    });

I had this problem when i first started, it was because i didnt run yarn / npm bundle. After getting the dependencies and building the solution it worked and the styles appeared.

Hope this helps, reference link below.

https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Getting-Started-Core

https://docs.aspnetzero.com/documents/aspnet-core-mvc/latest/Public-Website

for public site, in this link you can also see you need to run the bundles

Extra note, when i look at network tab in chrome dev tools i can see that its returned the data, when i debug it passes the param correctly to the appservice and gets expected result back.

Hi @maliming - thank you for responding and providing some information, i was looking at the audit logs process aswell.

It looks like the Id is not being passed to the app service when using the code you provided, any suggestions ?

Hi @maliming,

I had almost exactly the same thing, i was passing Id: instead of id:

Thank you so much!

Showing 11 to 20 of 49 entries