Base solution for your next web application
Open Closed

message: "Could not find content root folder!", after publish #8372


User avatar
0
bosalah created

after publish and deploy to iis i got this on the remote server

result: null, targetUrl: null, success: false, error: { code: 0, message: "Could not find content root folder!", details: "Exception: Could not find content root folder! STACK TRACE: at Israa.Web.WebContentDirectoryFinder.CalculateContentRootFolder() in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.Core\Web\WebContentFolderHelper.cs:line 27 at Israa.EntityFrameworkCore.MyConnectionStringResolver.GetNameOrConnectionString(ConnectionStringResolveArgs args) in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.EntityFrameworkCore\EntityFrameworkCore\MyConnectionStringResolver.cs:line 30 at Abp.Domain.Uow.UnitOfWorkBase.ResolveConnectionString(ConnectionStringResolveArgs args) at Abp.EntityFrameworkCore.Uow.EfCoreUnitOfWork.GetOrCreateDbContext[TDbContext](Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Uow.UnitOfWorkExtensions.GetDbContext[TDbContext](IActiveUnitOfWork unitOfWork, Nullable1 multiTenancySide, String name) at Abp.EntityFrameworkCore.Uow.UnitOfWorkDbContextProvider1.GetDbContext(Nullable1 multiTenancySide) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.get_Context() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.<GetQueryable>b__7_0(Type key) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetQueryable() at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAllIncluding(Expression1[] propertySelectors) at Abp.EntityFrameworkCore.Repositories.EfCoreRepositoryBase3.GetAll() at Castle.Proxies.Invocations.IRepository2_GetAll_30.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformSyncUow(IInvocation invocation, UnitOfWorkOptions options) at Abp.Domain.Uow.UnitOfWorkInterceptor.PerformUow(IInvocation invocation, UnitOfWorkOptions options) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.IRepository1Proxy_5.GetAll() at Israa.IsraaSettings.Rooms.RoomAppService.GetAll() in D:\IsraaAspZero\IsraaCore3Angular\Israa\aspnet-core\src\Israa.Application\IsraaSettings\Rooms\RoomAppService.cs:line 36 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.


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi bosalah

    see https://github.com/aspnetboilerplate/aspnetboilerplate/issues/4433

  • User Avatar
    0
    bosalah created

    thank you millions :)