Base solution for your next web application
Open Closed

Trying to update my project to version 10.1 and it's hanging trying to load abpserviceproxies/getall #10245


User avatar
0
sh0knah created
  • What is your product version?

    • 10.1
  • What is your product type (Angular or MVC)?

    • MVC
  • What is product framework type (.net framework or .net core)?

    • .NET Core
  • What is ABP Framework version?

    • 6.2.0

Upgraded nuget and js library references, .NET framework version, etc. Got the project building.

On startup, the login page comes up correctly. On the Network tab in the browser, everything looks like it's loading correctly, except the call to abpserviceproxies/getall. That call never returns and spins the CPU up really high. Obviously, that breaks most functionality beyond the login screen.

On researching the issue, I found references to similar issues caused by System.Type parameters in the AppService interfaces. Verified that I have no Type parameters in my AppServices.

I also found references to issues caused by return types like IQueryable. I did have a couple of those and commented them out to see if that would resolve the issue. It did not.

I attributed all IApplicationService-derived interfaces with [RemoteService(IsEnabled = false)] to try to eliminate the issue, planning to bring interfaces back in slowly until I identifed the problematic interface. With all interfaces excluded, I get the same behavior--abpserviceproxies/getall never returns.

Thinking that maybe the complete lack of interfaces may cause a problem, I re-introduced a single, very simple IApplicationService-derived interface (1 method, simple parameter types). Same problem.

Where else can I look for a cause on this? I can reproduce it on all development machines on my team, Windows and MacOS.

I'm stumped. Any help would be much appreciated.


8 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sh0knah

    Sorry for my late reply. If there is an exception, you should be able to see it on the server side Log file. Could you check it and share the error message with us ?

  • User Avatar
    0
    sh0knah created

    No errors in the log file.

    If I watch the Network tab of the browser, all of the resources load correctly, except for GetAll. The call to GetAll just never returns.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sh0knah

    Is it possible to share your project with us ? If so, could you send it to [email protected] ?

    Thanks,

  • User Avatar
    0
    CrayonGroupSCA created

    Hi, was this solved in the end? We are trying to go from 7.2 to 10.4 and are getting the same problem that abpserviceproxies never loads. Stock 10.4 did work but after bringing over our app services it fails to finish loading the log in screen.

    Thanks, Dave

  • User Avatar
    0
    sh0knah created

    I never found a resolution and am not able to share my whole project. So I'm working through the other direction, starting with a 10.3 codebase and re-applying all of my application code to that. Not a small effort. But otherwise I'm frozen on an older version if I can't load the proxies.

  • User Avatar
    0
    CrayonGroupSCA created

    Thats a shame. We are copying over our 7.2 changes and it stopped at some point after bringing over controllers / app services. Will probably start again one area at a time to see if a particular one breaks. Otherwise it will be looking at the source for ABP so we can breakpoint to try and diagnose the issue, not sure which will be faster / easier to do.

  • User Avatar
    0
    CrayonGroupSCA created

    I don't yet know why, but have at least found a way to narrow down where the problem is. From 50ish app services we eventually found the 1 that was causing problems, all others appear in the GetAll now.

    "Exclude from project" all of the custom app services (can leave interfaces in place) and any other files needed to get the solution to build (ie background workers), then check to see if "abpserviceproxies" loads. If it does you can "include in project" a few app services at a time until you find the one that is causing the problems.

    Will try and find out later in the week what is the exact issue, but for now can carry on upgrading and porting over our existing code.

  • User Avatar
    0
    CrayonGroupSCA created

    After reading your comments at the start about [RemoteService(false)] I checked our current working build to see what was being returned in the proxies GetAll() and there were a couple of API calls with complex types (Power BI Client for example) which were returning massive (557k chars long) definitions. The others in that app service had normal custom DTOs which were small, so I commented out the complex call and GetAll() worked. As this was not needed remotely I added the RemoteService to them and ta da the GetAll() now worked with no CPU or memory spike.

    Will now review the rest of the output to see which others can be set to false to improve the initial load times.

    Good luck!