Open Closed

DevExpress Dashboard Integration #4157


User avatar
0
Spospisil created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

Hi,

I am opening another ticket on my issue because at this point I have exhausted all ideas/attempts at getting a new record into the database from an application service. Previously you told me that you had no issue with this sample project however when I run it although it may work the first and second time, but eventually it gives me a 'Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled).' error. At this point I'm out of ideas and need assistance getting this test solution to work consistently every time.

See the below link for the git repo and the steps to reproduce. What does not make sense is that I can call my custom application services and subsequent associated repository methods when the logic is in a class inherited from AbpViewComponent (Which is in the web project too) but not from just a normal class (DashboardStorageExtension). Make sure you get the latest version of this project from github please.

Run the migrations associated with the solution Login as host user/admin From the Setup Menu click 'Setup' From the resulting Dashboard list page choose the 'New Dashboard' button on the right. Click 'Create' in the middle of the screen Drag a dashboard control onto the main part of the designer From the hamburger menu in the upper left click the 'Save' option

The error occurs in the DashboardAppService class on the below highlighted line. For some reason it cannot insert a new record into the table. I was able to get past the previous issue of the service itself not being injected properly but now it seems like I cannot do anything database related from my injected service.

I've given access to https://github.com/maliming for the git repository that contains the example project showing the issue


13 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    however when I run it although it may work the first and second time, but eventually it gives me a 'Volo.Abp.Http.Client.AbpRemoteCallException: An error occurred during the ABP remote HTTP request. (The operation was canceled).' error. At this point I'm out of ideas and need assistance getting this test solution to work consistently every time.

    I have tried several times, but can't reproduce the problem. Is there another way?

  • User Avatar
    0
    Spospisil created

    Hi,

    Ok then this is indicating it’s an environment issue. Can you tell me what versions of redid and postgresql you are using?

    Thanks

  • User Avatar
    0
    Spospisil created

    Hi,

    I'm not sure if this is helpful to you but the error occurs in the 'requestasync' method of the ClientProxyBase class. It's a little odd to me that all the local variables seem to not be valid.

    Any thoughts?

  • User Avatar
    0
    Spospisil created

    Hi,

    You are using the latest code from https://github.com/spospisil/ABPSampleDashboard correct?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, I use the latest code.

    The operation was canceled

    Please share the relevant logs of the API and web projects. This situation is usually caused by the browser canceling the http request.

  • User Avatar
    0
    Spospisil created

    Hi,

    I don't see anything in either log but I sent you an email with both log files attached

    Steve

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    will error happen if you call API from swagger?

  • User Avatar
    0
    Spospisil created

    Hi,

    Yes, it works via swagger.

  • User Avatar
    0
    Spospisil created

    Hi,

    Any other things I can try? It does not make sense that it works for you but not for me.

  • User Avatar
    0
    Spospisil created

    Hi,

    When I create a ViewComponent inheriting from ABPViewComponent the exact same call I'm trying to do works just fine. Is there an ABP class I should be inheriting from for the DashboardStorageExtension class to get this to work?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I think the problem is async void

    https://learn.microsoft.com/en-us/archive/msdn-magazine/2013/march/async-await-best-practices-in-asynchronous-programming#avoid-async-void

    You can try call _dashboardAppService.CreateAsync by AsyncHelper.RunSync(() => _dashboardAppService.CreateAsync);

  • User Avatar
    0
    Spospisil created

    Hi,

    Yup! That was the issue!!!! Thank you!!! I'm going to write up a post for the 'community' on how to implement the DevExpress Dashboard control within the ABP framework as I know there are others trying to do what I am trying to do.

    Thank you so much for your help!

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    😉

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11