Base solution for your next web application
Open Closed

Could not find content root folder! #4365


User avatar
0
ramezani583 created

hi, my project type isASP.NET Core & Angular (V5.0.4)

Add-Migration "Added_Provinces_Table"

System.Exception: Could not find content root folder! at SSoft.ResourceAssessmentsNetwork.Web.WebContentDirectoryFinder.CalculateContentRootFolder() at SSoft.ResourceAssessmentsNetwork.EntityFrameworkCore.ResourceAssessmentsNetworkDbContextFactory.CreateDbContext(String[] args) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContextFromFactory(Type factory) at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.<>c__DisplayClass14_0.<FindContextFactory>b__1() 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.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_01.<Execute>b__0() at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action) Could not find content root folder!


5 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team
  • User Avatar
    0
    ramezani583 created

    hi, I have the latest version! The problem was not that code I have transferred the solution to Microsoft TFS The root folder of the solution is in accordance with the attached image.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ramezani583,

    It seems like you have solved your problem, right ?

  • User Avatar
    0
    ramezani583 created

    no problem don't solve!

  • User Avatar
    0
    ismcagdas created
    Support Team

    @ramezani583, it seems like you have deleted Web.sln, right ? If so, you also need to change the code in WebContentFolderHelper.cs.

    Replace "SSoft.ResourceAssessmentsNetwork.Web.sln" to "SSoft.ResourceAssessmentsNetwork.All.sln".