Code Monkey home page Code Monkey logo

weapsy's Introduction

PROJECT NO LONGER MAINTAINED

IT WAS MADE PRIVATE WHEN IT HAD 754 STARS AND THEN MADE PUBLIC AGAIN FOR ARCHIVE PURPOSES

Weapsy

Build status

Weapsy is an ASP.NET Core CMS.

Technology

  • C#
  • ASP.NET Core
  • Entity Framework Core
  • MSSQL, MySQL, SQLite, PostgreSQL

Prerequisites

How to run on local

  • Open the Weapsy.sln solution in Visual Studio
  • Build the solution with release configuration (default apps will be copied over to the "Apps" folder)
  • Set the data provider of your choice in the appsettings.json file and modify the default connection string accordingly if needed.
  • Run (F5 or Ctrl+F5)
  • Login using these credentials:
  • Database and seed data will be created automatically the first time you run the application.

weapsy's People

Contributors

adanb007 avatar araqiel2552 avatar eerhardt avatar elderjames avatar emfluenceindia avatar lucabriguglia avatar ronaldharmsen avatar ryanmcdonough avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

weapsy's Issues

NoSQL Data Provider

Creation of the first NoSQL data provider.
Project name will be Weapsy.Domain.Data.provider

Issue configuring the project

I am continuously getting problem in configuring the project. All projects are failing to load.
Please let me know the work around.

Compatibility Issue

I have VS2015 Community edition (update 3) but I am seeing incompatible message - "This project is incompatible with current edition of Visual Studio". Please see attached screenshot.

vs-version

If you are OK I would like to contribute in this project.

Object reference not set to an instance of an object.

textModuleType=moduleTypeRepository.GetByName(Text); return null😂

at Weapsy.Services.Installation.SiteInstallationService.InstallDefaultSite() in D:\project\Weapsy\src\Weapsy.Services\Installation\SiteInstallationService.cs:line 184
at Weapsy.Services.Installation.SiteInstallationService.VerifySiteInstallation() in D:\project\Weapsy\src\Weapsy.Services\Installation\SiteInstallationService.cs:line 90
at Weapsy.Startup.Configure(IApplicationBuilder app, IHostingEnvironment hostingEnvironment, ILoggerFactory loggerFactory, ISiteInstallationService siteInstallationService, IThemeInstallationService themeInstallationService, ISiteRepository siteRepository, IQueryDispatcher queryDispatcher) in D:\project\Weapsy\src\Weapsy\Startup.cs:line 181

When the demo can be available?

Also the description of this repository is too simple ,just "Weapsy is an ASP.NET Core CMS based on DDD and CQRS.", is there any document about the framework and design idea?

Error When start with PostgreSQL

i have a problem when start projects with PostgreSQL

but on queryHandler it get provider like:
Weapsy.Infrastructure.Configuration.DataProvider.MSSQL

Can't push to forked repo

403 error trying to push changes to forked repository.

Error message:

remote: Permission to subtata-emfluence/Weapsy.git denied to emfluenceindia. fatal: unable to access 'https://github.com/subtata-emfluence/Weapsy.git/': The requested URL returned error: 403

Editing a page - Activation

I Edit-ed the new page I created (aboutus) at /admin/page/edit/959a946e-2bc1-4077-af49-a55ce55f72a4 to Activate it. On screen message says it has been saved (activated) and in page list (/Admin/Page) the checkbox under Active is now checked.

But when I tried to access http://localhost:56923/aboutus, 404-Page not found error came up.

Read Model Refactoring

Refactor all reporting facades removing references to domain repositories.
All facades will access the database directly.
This will add few benefits:

  • Write and read models completely isolated.
  • Read model could expose IQueryable more easily

System.InvalidOperationException: Can not find compilation library location for package 'weapsy.apps.text'

Environment data

Visual Studio 2017 Community (Visual Studio/15.0.0+26228.9)
Windows 10, English Language with German (Switzerland) locale

Steps to reproduce

  1. git clone https://github.com/Weapsy/Weapsy (01.04.2017, appx. 22:00)
  2. Open in Visual Studio 2017
  3. Edit connection string
  "ConnectionStrings":
  {
    "oldDefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=Weapsy;Trusted_Connection=True;MultipleActiveResultSets=true",
    "DefaultConnection": "Server=DESKTOP-4P9UFE8;Database=Weapsy;Trusted_Connection=True;MultipleActiveResultSets=true;"
  },
  1. Create Database Weapy on server DESKTOP-4P9UFE8
  2. Build solution
  3. Run
    ==> Chrome opens ==> Error message
    (database is created)

Expected behavior

I get to a welcome/landing page

Expected behavior

I got Error 1 instead.
I added Weapsy.Apps.Text to dependencies of Weapsy.
Then I got an AutoFac error.

In AutoFacModules.cs, I added

var textAssembly = typeof(Weapsy.Apps.Text.AutofacModule).GetTypeInfo().Assembly;
builder.RegisterAssemblyTypes(textAssembly).AsImplementedInterfaces();

Then I got some other strange error.
Then I removed Weapsy.Text again, and commented out the entries in AutoFacModules.cs.
Then I re-compiled and re-run, and I posted this Issue.
Then I wanted to give you the details of error 2 as well, so I re-add Weapy.Text (not the AutoFacModules.cs entries).
Then I run and wanted to copy the error message, but then I was greated by the Weapy Landing page...
Strange.
Does it depend on some value that isn't in the database after install ?

Stacktrace Error 1

System.InvalidOperationException: Can not find compilation library location for package 'weapsy.apps.text'
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
at System.Linq.Enumerable.d__1592.MoveNext() at Microsoft.AspNetCore.Mvc.Razor.Compilation.MetadataReferenceFeatureProvider.PopulateFeature(IEnumerable1 parts, MetadataReferenceFeature feature)
at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature)
at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorReferenceManager.GetCompilationReferences()
at System.Threading.LazyInitializer.EnsureInitializedCore[T](T& target, Boolean& initialized, Object& syncLock, Func1 valueFactory) at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorReferenceManager.get_CompilationReferences() at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.CreateCompilation(String compilationContent, String assemblyName) at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRoslynCompilationService.Compile(RelativeFileInfo fileInfo, String compilationContent) at Microsoft.AspNetCore.Mvc.Razor.Internal.RazorCompilationService.Compile(RelativeFileInfo file) at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.CreateCacheEntry(String relativePath, String normalizedPath, Func2 compile)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Razor.Internal.CompilerCache.GetOrAdd(String relativePath, Func2 compile) at Microsoft.AspNetCore.Mvc.Razor.Internal.DefaultRazorPageFactoryProvider.CreateFactory(String relativePath) at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.CreateCacheResult(HashSet1 expirationTokens, String relativePath, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.OnCacheMiss(ViewLocationExpanderContext expanderContext, ViewLocationCacheKey cacheKey)
at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.LocatePageFromViewLocations(ActionContext actionContext, String pageName, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.Razor.RazorViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine.FindView(ActionContext context, String viewName, Boolean isMainPage)
at Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor.FindView(ActionContext actionContext, ViewResult viewResult)
at Microsoft.AspNetCore.Mvc.ViewResult.d__26.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__30.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResultExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware1.d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Web.BrowserLink.BrowserLinkMiddleware.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DatabaseErrorPageMiddleware.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.d__7.MoveNext()

How to contribute?

I was wondering how are you doing on the roadmap. I am wondering if I can contribute. The Templates for Module and Pages seems to be something very useful and I wanted to know how far are you from completing. I also implemented a new theme which worked fairly good.

Default Bootstrap Theme

Looking for someone willing to create the default bootstrap theme that will be included in the first RTM.

Remove Autofac dependency.

It is possible to remove Autofac dependency and use .NetCore DI system? Or there is any restrictions in .netcore DI?

Merge issue

I don't know whether this is really an issue or not! I am checking out to my language-selection branch and using git merge master which is supposed to merge master branch into language-selection. But it always says Already up to date.

  1. Do you still see merge conflicts? Is this still not possible to merge my latest changes? I really need your help here to resolve those conflicts. Hope you would be able to extract some time for me.

  2. I did a fresh clone from master (not forked one) which is the latest version (you made the latest commit some 12 hours ago), but I cannot see any changes I made fro the beginning. Are they not merged into it? I can rework on those, which is not a problem but asking this out of curiosity.

Waiting for your reply.

Create New page - page is still being created with error in URL

Page reference: /Admin/Page/Create.
Issue:
URL added as /aboutus
On screen error message: Enter only letters, numbers, underscores and hyphens with no spaces.
Page not saved which is OK.

Under Permission tab after setting permission and hitting SAVE, the page gets saved and shown in the list (/Admin/Page) as /aboutus, even with the above error was still there.

InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'Weapsy.Models.AccountViewModels.LoginViewModel', but this ViewDataDictionary instance requires a model item of type 'Weapsy.Reporting.Pages.PageInfo'.

When I run the login page and post the login form.Then the error occured:
InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'Weapsy.Models.AccountViewModels.LoginViewModel', but this ViewDataDictionary instance requires a model item of type 'Weapsy.Reporting.Pages.PageInfo'.

Control Panel

When you login as administrator you can see an admin bar on the left.
What I would like to have is a bar that can be shown/hidden with a click and that it reduces accordingly the width of the page.
Assuming default page's width is 1000px and admin bar's one is 200px, when the bar is open the overall width of the page should be reduced to 800px.

Rich text editor disappears

Steps to reproduce:

  • Go to the open page
  • Click on edit in the module actions menu (rich text editor should appear)
  • Close the modal
  • Reopen it (rich text editor should be gone and a simple text input is shown)

.NET Core 1.0 download link

In README.md link to .NET Core 1.0 actually points to recent version, while a different and earlier version 1.0.0-preview2-003121 is declared in global.json and the same is expected by the solution.

Select default page and module templates

DRAFT

Implementation notes:

Page Templates

  • Create query GetPageTemplates in Weapsy.Reporting.Themes
  • Create handler GetPageTemplatesHandler in Weapsy.Data.Reporting
  • Add GetPageTemplates action in Weapsy.Api.ThemeController

Module Templates:

  • Create query GetModuleTemplates in Weapsy.Reporting.Themes
  • Create handler GetModuleTemplatesHandler in Weapsy.Data.Reporting
  • Add GetModuleTemplates action in Weapsy.Api.ThemeController

Theme

  • Add IsPageTemplateValid method to IThemeRules
  • Add IsModuleTemplateValid method to IThemeRules

Site Settings

  • Add page template validation to UpdateSiteDetailsValidator
  • Add module template validation to UpdateSiteDetailsValidator

Site Settings UI

  • Add page templates dropdown (populated based on selected theme)
  • Add module templates dropdown (populated based on the selected theme)

...

Issue running with SQLite

I had a problem starting with SQLite (on Mac). Similar problem to #28.

Tracked down the problem to a missing IOptions<Weapsy.Data.Configuration.Data> (provider defaults to MSSQL) and was able to fix the problem by adding:

services.Configure<Weapsy.Data.Configuration.Data>(c => {
c.Provider = (Data.Configuration.DataProvider)Enum.Parse(
typeof(Data.Configuration.DataProvider),
Configuration.GetSection("Data")["Provider"]);
});

in ConfigureServices (Presentation\Weapsy\startup.cs)

I also send you a pull request..

Stack trace is below:

Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Private.CoreLib.ni.dll
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.ni.dll
Loaded '/Users/ronaldharmsen/.nuget/packages/System.Diagnostics.StackTrace/4.3.0/lib/netstandard1.3/System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Loaded '/usr/local/share/dotnet/shared/Microsoft.NETCore.App/1.1.2/System.Reflection.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'System.AggregateException' in System.Private.CoreLib.ni.dll

Unhandled Exception: System.AggregateException: One or more errors occurred. (A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)) ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught) ---> System.AggregateException: One or more errors occurred. (Device not configured) ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException: Device not configured
at System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult)
at System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult)
at System.Net.Dns.<>c.b__14_1(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Data.SqlClient.SNI.SNITCPHandle.d__22.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait(TimeSpan timeout)
at System.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel)
--- End of inner exception stack trace ---
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.d__62.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.<MoveNext>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.SelectAsyncEnumerable2.SelectAsyncEnumerator.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.SelectAsyncEnumerable2.SelectAsyncEnumerator.<MoveNext>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.d__1291.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Weapsy.Data.Reporting.Themes.GetActiveThemesHandler.<b__4_0>d.MoveNext() in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy.Data/Reporting/Themes/GetAllActiveHandler.cs:line 35
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Weapsy.Framework.Caching.CacheManagerExtensions.<GetAsync>d__31.MoveNext() in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy.Framework/Caching/CacheManagerExtensions.cs:line 45
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Weapsy.Framework.Caching.CacheManagerExtensions.<GetAsync>d__21.MoveNext() in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy.Framework/Caching/CacheManagerExtensions.cs:line 32
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Weapsy.Data.Reporting.Themes.GetActiveThemesHandler.<RetrieveAsync>d__4.MoveNext() in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy.Data/Reporting/Themes/GetAllActiveHandler.cs:line 31 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at Weapsy.Framework.Queries.QueryDispatcher.d__32.MoveNext() in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy.Framework/Queries/QueryDispatcher.cs:line 27 --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Weapsy.Startup.Configure(IApplicationBuilder app, IHostingEnvironment hostingEnvironment, ILoggerFactory loggerFactory, ISiteInstallationService siteInstallationService, IThemeInstallationService themeInstallationService, ISiteRepository siteRepository, IQueryDispatcher queryDispatcher) in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy/Startup.cs:line 150
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at Weapsy.Program.Main(String[] args) in /Users/ronaldharmsen/dev/weapsy/Weapsy/src/Weapsy/Program.cs:line 10

/error/404 page not found

thanks for your sharing

when i built all solution and run Weapsy.Web

showing 404 page

i want to ask, is this normal? if not how to solve it.

thanks!

Partners Wanted

I'm looking for experienced and brilliant developers to join the team and have shares of the project.

Our objective will be the creation of the best open source ASP.NET Core CMS!

I'm looking for 3 partners.
One front end and one back end (or full stack) and one web designer.
Each of them will have 15% of the company.

If you are interested and you think you can add great value to the project, please choose one (or more) of the following code tests based on your expertise.

  1. Refactoring of the page admin area using Angular 2 or React. Rest Api already available.
  2. Implement a mail service. Remember to use the email accounts functionality.
  3. Create a theme for the website or the admin area.

Once finished send me your code, alongside your LinkedIn profile, to [email protected].

Add a comment for any questions, thanks!

Re-visiting CQRS and Event Sourcing implementation

As soon as the new Weapsy.CQRS package is installed, there will be a few following steps:

  • Removing all the repositories from the domain project
  • Adding the new repository that uses the event store instead
  • Adding the read model creation through event handlers to a new Reporting.Data.EF project

Unable to run

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?

Language Selection

Implement a dropdown language selection using this component: Language Selection.
On language selection we should call the SetLanguage method in Home controller and refresh the page.

Uneeded Tasks

Hi, just looked at Weapsy code and found some interesting parts like in SiteController.cs

        public async Task<IActionResult> Update(SiteAdminModel model)
        {
            var command = _mapper.Map<UpdateSiteDetails>(model);
            command.SiteId = SiteId;
            await Task.Run(() => _commandSender.Send<UpdateSiteDetails, Site>(command));
            return new NoContentResult();
        }

I hope you know that by running Task.Run you are scheduling execution of _commandSender.Send on thread pool, so in this case you loosing real asynchrony and it is recommended to remove async await and Taks.Run at all (it will run faster and require less resources) or better Add SendAsync implementation to commandSender so you dont need to use Task.Run

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.