lucabriguglia / Weapsy

ASP.NET Core CMS
http://www.weapsy.com
Other
10 stars 2 forks source link

Unable to run #59

Open aawaheed opened 5 years ago

aawaheed commented 5 years ago

when running 1st time, it fails at SiteInstallationService.cs on line 180. the textModuleType at line 174 was returned null. any idea how to fix this?

lucabriguglia commented 5 years ago

Have you built the whole solution before running it?

aawaheed commented 5 years ago

Yes I did that. Today, I deleted the databases & build all whole solution and still the same thing

KenWang007 commented 5 years ago

Yes, i got same issue in my local env, textModuleType is null , but the database can init successfully, and will show page not found in index page

kinggod commented 5 years ago

I had the same problem

lucabriguglia commented 5 years ago

Sorry for the delay guys, I'm checking it now.

lucabriguglia commented 5 years ago

The bug was in the gulpfile, it wasn't mapping properly the Text app folder. If you pull the latest, you should be able to run it! Please, let me know if it works and I'll close the issue, thanks.

dodomoo commented 5 years ago

The bug was in the gulpfile, it wasn't mapping properly the Text app folder. If you pull the latest, you should be able to run it! Please, let me know if it works and I'll close the issue, thanks.

still cannot run

dodomoo commented 5 years ago

build the whole solution and then run weapsy.web, i got the 404 error,but tables were generated. then i can log in via admin@default.com in the readme.md file and https://localhost:44318/Admin works

publicjs commented 5 years ago

I had the same problem

publicjs commented 5 years ago

`An error occurred while starting the application. NullReferenceException: Object reference not set to an instance of an object. Weapsy.Services.Installation.SiteInstallationService.InstallDefaultSite() in SiteInstallationService.cs, line 180

NullReferenceException: Object reference not set to an instance of an object. Weapsy.Services.Installation.SiteInstallationService.InstallDefaultSite() in SiteInstallationService.cs + var contentModule = Module.CreateNew(new CreateModule Weapsy.Services.Installation.SiteInstallationService.VerifySiteInstallation() in SiteInstallationService.cs + InstallDefaultSite(); Weapsy.Web.Startup.Configure(IApplicationBuilder app, IHostingEnvironment hostingEnvironment, ILoggerFactory loggerFactory, ISiteInstallationService siteInstallationService, IThemeInstallationService themeInstallationService, ISiteRepository siteRepository, IDispatcher dispatcher, UserManager userManager, RoleManager roleManager, ApplicationDbContext applicationDbCopntext, WeapsyDbContext weapsyDbContext, EventStoreDbContext eventStoreDbContext) in Startup.cs + siteInstallationService.VerifySiteInstallation(); System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app) Microsoft.AspNetCore.ApplicationInsights.HostingStartup.ApplicationInsightsLoggerStartupFilter+<>cDisplayClass0_0.b0(IApplicationBuilder builder) Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>cDisplayClass0_0.b0(IApplicationBuilder app) Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter+<>cDisplayClass3_0.b0(IApplicationBuilder app) Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter+<>cDisplayClass0_0.b0(IApplicationBuilder builder) Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()`

ngminhphuc commented 5 years ago

Restore all package in npm and it works.

image

lucabriguglia commented 5 years ago

thanks @ngminhphuc