psijkof / ModernBusiness.OC.RazorPages

Start Bootstrap's Modern Business Theme for Orchard Core as a decoupled Razor Pages Module
MIT License
20 stars 7 forks source link

An error on starting the App with App_Data from the repo (System.NullReferenceException) #18

Closed ghenadieprocopan closed 5 years ago

ghenadieprocopan commented 5 years ago

I am glad to find this project. I am novice in asp.net core. Project is nice and helpfully. I have downloaded and enrolled project and have started but i have receveid message which is below System.NullReferenceException: Object reference not set to an instance of an object. at YesSql.QueryExtensions.Query[T](ISession session) in C:\projects\yessql-un1yf\src\YesSql.Abstractions\QueryExtensions.cs:line 11 at OrchardCore.Environment.Shell.Data.Descriptors.ShellDescriptorManager.GetShellDescriptorAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore.Infrastructure\Shell\ShellDescriptorManager.cs:line 55 at OrchardCore.Environment.Shell.Builders.ShellContextFactory.OrchardCore.Environment.Shell.Builders.IShellContextFactory.CreateShellContextAsync(ShellSettings settings) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\Builders\ShellContextFactory.cs:line 43 at OrchardCore.Environment.Shell.ShellHost.GetOrCreateShellContextAsync(ShellSettings settings) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 89 at OrchardCore.Environment.Shell.ShellHost.PreCreateAndRegisterShellsAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 186 at OrchardCore.Environment.Shell.ShellHost.InitializeAsync() in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Environment\Shell\ShellHost.cs:line 62 at OrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext) in C:\projects\orchardcore\src\OrchardCore\OrchardCore\Modules\ModularTenantContainerMiddleware.cs:line 39 at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

Project ModernBusiness.OrchardCore-master ran well. But newest project failed to run. Can you help me? Best regards.

psijkof commented 5 years ago

Delete the folder App_Data from the ModernBusiness.App image

Then run the app and initialize the default tenant with either the ModernBusiness.Theme recipe, or with the SaaS recipe, and create a tenant that you initialize with the ModernBusiness.Theme

ghenadieprocopan commented 5 years ago

Thank you. It's resoved in this way.