Open Closed

abp suite error after 2.1.1 update #42


User avatar
0
AlainLeicht created

Hi,

After updating to 2.1.1, I get an error when opening an existing solution. Here the logfile extract

2020-02-27 16:58:00.989 +01:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/solutions/My.Project/is-built application/json 
2020-02-27 16:58:00.989 +01:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.AbpSuiteController.IsSolutionBuiltAsync (Volo.Abp.Suite)'
2020-02-27 16:58:00.990 +01:00 [INF] Route matched with {action = "IsSolutionBuilt", controller = "AbpSuite", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Boolean] IsSolutionBuiltAsync(System.String) on controller Volo.Abp.Suite.Controllers.AbpSuiteController (Volo.Abp.Suite).
2020-02-27 16:58:01.023 +01:00 [ERR] ---------- RemoteServiceErrorInfo ----------
2020-02-27 16:58:01.024 +01:00 [ERR] {
  "code": null,
  "message": "An internal error occurred during your request!",
  "details": null,
  "validationErrors": null
}
2020-02-27 16:58:01.025 +01:00 [ERR] Value cannot be null. (Parameter 'path1')
System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
   at System.IO.Path.Combine(String path1, String path2)
   at Volo.Abp.Suite.Areas.AbpSuite.CrudPageGenerator.Services.SuiteAssemblyService.AssemblyExists(Solution solution)
   at Volo.Abp.Suite.Controllers.AbpSuiteController.IsSolutionBuiltAsync(String solutionName)
   at lambda_method(Closure , Object )
   at Microsoft.Extensions.Internal.ObjectMethodExecutorAwaitable.Awaiter.GetResult()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2020-02-27 16:58:01.038 +01:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Http.RemoteServiceErrorResponse'.
2020-02-27 16:58:01.038 +01:00 [INF] Executed action Volo.Abp.Suite.Controllers.AbpSuiteController.IsSolutionBuiltAsync (Volo.Abp.Suite) in 48.5097ms
2020-02-27 16:58:01.038 +01:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.AbpSuiteController.IsSolutionBuiltAsync (Volo.Abp.Suite)'
2020-02-27 16:58:01.038 +01:00 [INF] Request finished in 49.5569ms 500 application/json; charset=utf-8

Best regards,


13 Answer(s)
  • User Avatar
    0
    AlainLeicht created

    Still the same after 2.2.1 update. Any input on this?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Is you project mvc or angular?

    if mvc, is it tiered? if angular, is identity-server separated?

  • User Avatar
    0
    AlainLeicht created

    It is anglar with separated identity-server.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    I couldn't reproduce your problem.

    Can you email "%userprofile%\.abp\suite\appsettings.json" file to emre.kalkan@volosoft.com ?

  • User Avatar
    0
    AlainLeicht created

    File sent

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    I've just received your email.

    Your UI framework is set as MVC and this is the problem. Please open suite and remove you solution from the list at home page and then add it again. After that, If your problem is not solved, inform me again.

    See https://docs.abp.io/en/commercial/latest/abp-suite/add-solution for help.

  • User Avatar
    0
    AlainLeicht created

    Adding the solution again did not solve the problem. I changed the UiFramework to "3", UiFrameworkName to "Angular" and added the path to my angular project. No more error.

    Is that correct ?

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Yes. But suite should had done that. We'll work on that.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    By the way, have you moved your angular folder to somewhere else after project is downloaded?

  • User Avatar
    0
    AlainLeicht created

    Yes, the projects are separated

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Then it's pretty normal that suite couldn't find any angular file at the initial location and therefore marked your project as mvc.

    Next time;

    1-) Download your solution. 2-) Add this solution to suite. 3-) Move your angular project to wherever you want. 4-) Open "%userprofile%.abp\suite\appsettings.json" file and fix the path of the angular folder. (like you did for that issue.)

  • User Avatar
    0
    alper created
    Support Team Director

    hi, is your problem still active?

  • User Avatar
    0
    AlainLeicht created

    Hi,

    Problem is solved.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35