Base solution for your next web application
Open Closed

RADTool giving Could not find root content folder! Error #5642


User avatar
0
mdframe created

I am using AspNet-Core with Angular version 5.6.2 with a new project. When I try to Generate from the RAD Tool I keep getting the following error message. All messages have been included for clarity:

-> WarehousesAppService.cs is being generated. -> IWarehousesAppService.cs is being generated. -> WarehouseConsts.cs is being generated. -> CreateOrEditWarehouseDto.cs is being generated. -> WarehouseDto.cs is being generated. -> GetAllForLookupTableInput.cs is being generated. -> GetAllWarehousesInput.cs is being generated. -> GetWarehouseForView.cs is being generated. -> GetWarehouseForEditOutput.cs is being generated. -> Warehouse.cs is being generated. -> AppPermissions.cs is being modified. -> AppAuthorizationProvider.cs is being modified. -> SKUHiveDbContext.cs is being modified. -> CustomDtoMapper.cs is being modified. Running add-migration... System.Exception: Could not find content root folder! at F2TEK.SKUHive.Web.WebContentDirectoryFinder.CalculateContentRootFolder() in D:\Projects\C-Sharp\SKUHive\aspnet-core\src\F2TEK.SKUHive.Core\Web\WebContentFolderHelper.cs:line 30 at F2TEK.SKUHive.EntityFrameworkCore.SKUHiveDbContextFactory.CreateDbContext(String[] args) in D:\Projects\C-Sharp\SKUHive\aspnet-core\src\F2TEK.SKUHive.EntityFrameworkCore\EntityFrameworkCore\SKUHiveDbContextFactory.cs:line 15 at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func1 factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType) at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType) at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.b__0()

at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Could not find content root folder! -> warehouses.component.ts is being generated. -> warehouses.component.html is being generated. -> create-or-edit-warehouse-modal.component.html is being generated. -> create-or-edit-warehouse-modal.component.ts is being generated. -> view-warehouse-modal.component.html is being generated. -> view-warehouse-modal.component.ts is being generated. -> main.module.ts is being modified. -> main-routing.module.ts is being modified. -> app-navigation.service.ts is being modified. -> service-proxy.module.ts is being modified. -> SKUHive.xml is being modified.

Code generation is complete. Press ENTER to exit...

I never received this message with my demo application so I am confused on why it is occuring on my branded project.


1 Answer(s)
  • User Avatar
    1
    mdframe created

    I found the answer was an issue with not having the web solution file in the root directory based on the tool looking in WebContentDirectoryFinder.cs. *.Web.sln file must be in the same directory so do not remove or move this file.