Open Closed

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


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


7 Answer(s)
  • 0
    liangshiwei created
    Support Team

    Hi,

    Can I check it remotely? [email protected]

  • 0
    gterdem created
    Support Team

    AdministrationService is having problems with finding OrderServiceApplicationContractsModule.

    Try building OrderService.

  • 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
  • 0
    gterdem created
    Support Team

    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).

  • 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).

  • 0
    maliming created
    Support Team

    hi commitdeveloper1

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

  • 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.