Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Unable to run #59

Open
aawaheed opened this issue Sep 23, 2018 · 12 comments
Open

Unable to run #59

aawaheed opened this issue Sep 23, 2018 · 12 comments
Assignees
Labels

Comments

@aawaheed
Copy link

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
Copy link
Owner

Have you built the whole solution before running it?

@aawaheed
Copy link
Author

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

@KenWang007
Copy link

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
Copy link

kinggod commented Oct 17, 2018

I had the same problem

@lucabriguglia
Copy link
Owner

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

lucabriguglia added a commit that referenced this issue Oct 17, 2018
@lucabriguglia lucabriguglia self-assigned this Oct 17, 2018
@lucabriguglia
Copy link
Owner

lucabriguglia commented Oct 17, 2018

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
Copy link

dodomoo commented Nov 6, 2018

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
Copy link

dodomoo commented Nov 6, 2018

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

@publicjs
Copy link

I had the same problem

@publicjs
Copy link

`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+<>c__DisplayClass0_0.b__0(IApplicationBuilder builder)
Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter+<>c__DisplayClass0_0.b__0(IApplicationBuilder app)
Microsoft.AspNetCore.Server.IISIntegration.IISSetupFilter+<>c__DisplayClass3_0.b__0(IApplicationBuilder app)
Microsoft.AspNetCore.Hosting.Internal.AutoRequestServicesStartupFilter+<>c__DisplayClass0_0.b__0(IApplicationBuilder builder)
Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()`

@ngminhphuc
Copy link

Restore all package in npm and it works.

image

@lucabriguglia
Copy link
Owner

thanks @ngminhphuc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants