Open Closed

Build failing while adding a new microservice (after updating adminitration microservice) #1602


User avatar
0
commitdeveloper1 created

I am getting the build failed when trying to run the tye dashboard while practising to add a new microservice using MVC framewrok and Microservice template My Solution build is failing when i am updating the administration microservice. All Infrastrcture service are running fine. Pls see the screenshot attached.

Pls let us know what is wrong here.

Regards, Ravi


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

    Hi,

    Can I check it remotely? shiwei.liang@volosoft.com

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    AdministrationService is having problems with finding OrderServiceApplicationContractsModule.

    Try building OrderService.

  • User Avatar
    0
    commitdeveloper1 created

    I am still getting the build error after building the OrderService. Attaching the screenshots;

    1. Building of OrderService
    2. Error after running tye run
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Try dotnet build /graphBuild in your main microservice solution directory. That should build all related projects. Preferably after deleting bin&obj folders (there should be a delete-bin-obj-folders.bat file under main solution directory as shortcut).

  • User Avatar
    0
    commitdeveloper1 created

    I tried building it again using dotnet build /graphBuild in the main microservice solution directory. It still gave me an error (attached).

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi commitdeveloper1

    How to reproduce your problem? Can you share the steps?

  • User Avatar
    0
    commitdeveloper1 created

    Yes, these are steps i am following:

    1. Runnin CLI command to create a new service in the solution
    *abp new OrderService -t microservice-service-pro*
    
    1. Then building the new service in the \services\order directory:
    dotnet build
    
    1. Adding the new service to the solution (project solution - run powershell) --dotnet sln add services/order/src/Acme.BookStore.OrderService.HttpApi.Host/Acme.BookStore.OrderService.HttpApi.Host.csproj --solution-folder services
    dotnet sln add services/order/src/MicroserviceSolution.OrderService.HttpApi.Host/MicroserviceSolution.OrderService.HttpApi.Host.csproj --solution-folder services
    
    1. Trying to Update Other Dependent Services - Administration (permission)

    <ProjectReference Include="......\order\src\Acme.BookStore.OrderService.Application.Contracts\Acme.BookStore.OrderService.Application.Contracts.csproj" /> <ProjectReference Include="......\order\src\MicroserviceSolution.OrderService.Application.Contracts\MicroserviceSolution.OrderService.Application.Contracts.csproj" />

    8a) Open Solution & from Services-> AdministrationService -> Right Click & added "OrderService.Application.Contracts.dll" by adding Project Reference (right click)

    8b) Open "AdministrationServiceHttpApiHostModule.cs" class and add the following module dependency "typeof(OrderServiceApplicationContractsModule)" -> and fix the potential "using MicroserviceSolution.OrderService;"

    These are the steps....and just after that i am getting the above thread errors.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    8a) Open Solution & from Services-> AdministrationService -> Right Click & added "OrderService.Application.Contracts.dll" by adding Project Reference (right click)

    Can you try to update the csporj to use ProjectReference instead add dll file?

  • User Avatar
    0
    commitdeveloper1 created

    8a) Open Solution & from Services-> AdministrationService -> Right Click & added "OrderService.Application.Contracts.dll" by adding Project Reference (right click)

    Can you try to update the csporj to use ProjectReference instead add dll file?

    I tried adding the csproj project reference insteal dll files and when i am building the solution, its gving me the same error. Order service is not building properly. i have also updated the CLI & dot net to latest 4.4 version.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    8a) Open Solution & from Services-> AdministrationService -> Right Click & added "OrderService.Application.Contracts.dll" by adding Project Reference (right click)

    Can you try to update the csporj to use ProjectReference instead add dll file?

    I tried adding the csproj project reference insteal dll files and when i am building the solution, its gving me the same error. Order service is not building properly. i have also updated the CLI & dot net to latest 4.4 version.

    It is probably cached, try deleting bin/obj folders and add project reference instead of package reference and build with dotnet build /graphBuild.

  • User Avatar
    0
    commitdeveloper1 created

    I tried this, but its not working. Can we have a remote session on this? Pls expedidte this as we need to deliver the solution.

  • User Avatar
    0
    alper created
    Support Team Director

    see my Gist https://gist.github.com/ebicoglu/543928d2dec68ce4fc0ddf25b8e39bac

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

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