Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "OutdoorEd"

4.1 bug, just tested out Net Core version of 4.1 locally. I took the Standard Edition that comes from the default install and edited it from Free to Paid. Then I changed it back to Free and click Save. It says it saved successfully but it doesn't actually. If you click Edit edition again it still has Paid selected and the monthly and yearly pricing. If you go to the login page and click New Tenant it comes up as a Paid option with the Buy button rather than the Start button.

Using NetZero 3.0 MVC Jquery version. I have my applications Role Permissions set up and working properly. When you go into the Permissions Modal all of the Permissions are sorted alphabetically by the 'highest parent.'

Is it possible to do more than 2 levels of nesting? I want to have a "dummy" permission called Configuration that holds the Permission for other Views. I have Configuration showing up but I can't get the proper 'children' underneath it because of the default alpha sort. Below is what I want to do with my dummy Configuration permission and the second and third levels I am trying to use. Below that is an example of the normal two-level permission

[ ]Configuration - Level 1 [ ] Notification - Level 2 [ ] Create Notification - Level 3 [ ] Edit Notification - Level 3 [ ] Person Notified - Level 2 [ ] Create Person - Level 3 [ ] Edit Person - Level 3 [ ]Department - Level 1 [ ] Create Department - Level 2 [ ] Edit Department - Level 2

Hello all,

I've activated email verification when creating a new user today, but I've faced the below exception when the user clicks on the link sent in the activation email. It fails when on the line

await _userManager.UpdateAsync(user);

and the exception detail is "Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: XYZ.Authorization.Users.User, id: 5"

I've double checked that there is user id: 5 in the DB so I'm not sure why this is failing now?

Any insights will be appreciated.

Exception detail as the below:

There is no such an entity. Entity type: XYZ.Authorization.Users.User, id: 5

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Abp.Domain.Entities.EntityNotFoundException: There is no such an entity. Entity type: XYZ.Authorization.Users.User, id: 5

Source Error: 


Line 672:            user.EmailConfirmationCode = null;
Line 673:
Line 674:            await _userManager.UpdateAsync(user);
Line 675:
Line 676:            var tenancyName = user.TenantId.HasValue


Stack Trace: 


[EntityNotFoundException: There is no such an entity. Entity type: XYZ.Authorization.Users.User, id: 5]
   Abp.Domain.Repositories.<GetAsync>d__17.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Domain\Repositories\AbpRepositoryBase.cs:86
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Threading.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5`1.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:120
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Authorization.Users.&lt;GetUserNameFromDatabaseAsync&gt;d__64.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\Users\AbpUserStore.cs:0
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Authorization.Users.&lt;UpdateAsync&gt;d__41.MoveNext() in D:\Halil\Github\module-zero\src\Abp.Zero\Authorization\Users\AbpUserManager.cs:343
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   XYZ.Web.Controllers.<EmailConfirmation>d__39.MoveNext() in C:\Repos\Personal\XYZ_MVC\XYZ.Web\Controllers\AccountController.cs:674
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   Abp.Threading.<AwaitTaskWithPostActionAndFinallyAndGetResult>d__5`1.MoveNext() in D:\Halil\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:120
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) +97
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass37.&lt;BeginInvokeAsynchronousActionMethod&gt;b__36(IAsyncResult asyncResult) +17
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
   System.Web.Mvc.Async.AsyncInvocationWithFilters.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3d() +50
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass46.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3f() +225
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass33.&lt;BeginInvokeActionMethodWithFilters&gt;b__32(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass2b.&lt;BeginInvokeAction&gt;b__1c() +26
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass21.&lt;BeginInvokeAction&gt;b__1e(IAsyncResult asyncResult) +100
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.Controller.&lt;BeginExecuteCore&gt;b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   Castle.Proxies.AccountControllerProxy.EndExecuteCore_callback(IAsyncResult asyncResult) +4
   Castle.Proxies.Invocations.Controller_EndExecuteCore.InvokeMethodOnTarget() +55
   Castle.DynamicProxy.AbstractInvocation.Proceed() +80
   Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\Github\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:29
   Castle.DynamicProxy.AbstractInvocation.Proceed() +108
   Castle.Proxies.AccountControllerProxy.EndExecuteCore(IAsyncResult asyncResult) +142
   System.Web.Mvc.Controller.&lt;BeginExecute&gt;b__15(IAsyncResult asyncResult, Controller controller) +12
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   Castle.Proxies.AccountControllerProxy.EndExecute_callback(IAsyncResult asyncResult) +26
   Castle.Proxies.Invocations.Controller_EndExecute.InvokeMethodOnTarget() +55
   Castle.DynamicProxy.AbstractInvocation.Proceed() +80
   Abp.Domain.Uow.UnitOfWorkInterceptor.Intercept(IInvocation invocation) in D:\Halil\Github\aspnetboilerplate\src\Abp\Domain\Uow\UnitOfWorkInterceptor.cs:29
   Castle.DynamicProxy.AbstractInvocation.Proceed() +108
   Castle.Proxies.AccountControllerProxy.EndExecute(IAsyncResult asyncResult) +142
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.MvcHandler.&lt;BeginProcessRequest&gt;b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +129
Question

I have added lots of Permission-based pages in my app and having the Permissions section come up as a model requires a lot of scrolling. How can I "turn off" modals for a particular view and just have it render on a regular page. In my case I am looking at the _PermissionsModal.cshtml

I have an existing MVC 5 application that has been using standard ASP.NET Identity for Authentication/Role Authorization. I am porting it over to Abp.

I already have a populated database in my current app. I used EF Database First to generate the Models from the database and then EF MVC Scaffolding to build all of the Controllers and Views for basic CRUD operations. Since that code all works I want to see if I can reuse it. My thought is to take my current Models, Controllers, Views and place then in a new /Area in .Web. My database tables already have all the necessary Abp fields: TenantId, IsDeleted, DeletedUserId, LastModificationTime, LastModifiedUserId, CreationTime, CreatorUserId so no migrations are necessary.

From looking at the sample implementation implementing CRUD on one database table requires about 30 different code files in the various layers spread across .Application, .Core, .EntityFramework and .Web. With over 90 tables in the existing database I am trying to explore alternatives to throwing out all my existing code and rebuilding the entire application from scratch.

My questions: I need to authenticate via Abp Login and pass the TenantId over to my existing Controllers to filter all the records by TenantId and to be able to use the TenantId and UserId in Create and Update methods. Is it possible to inherit the necessary elements from Abp to use my existing Models and scaffolded Controllers without needing to recreate all of the layers in .Application, .Core, .EntityFramework?

If it is possible, what would I need to do to get my existing code to work with TenantId? Things like a second DbContext that inherits from AbpZeroDbContext, and Models that inherit IMustHaveTenant? Or are there any shortcuts to accessing the TenantId that would allow me to use my current code?

Thanks for any advice you can give me.

Do you have a timeline for adding the Subscription Management feature you listed in the roadmap? I need to manage the number of Active Users in a Subscription and am developing an application to be released in May. I have built my own Active User/Subscription and Length of Subscription implementation but might pull that out depending on when this feature will be added and if it will cover these two scenarios:

StartDate & EndDate of Subscription Limit Number of Active Users: a 5 User Subscription allows you to create 5 Active Users and any number of Inactive Users. You can turn off an active user and the turn on an inactive user

I am using ASP.NET Zero as the authentication platform for a multi-tenant application. Once logged in individual tenants submit accident data to a separate database. I need to do two things with TenantId.

  1. Filter accident data by TenantId so that each Tenant can only view their own data. I have a TenantId as a field in the Accident table. I think this can be done in my AccidentModel using some code for EntityFramework.Dynamic Filters but do not know how to implement the code.

  2. I need to be able to access the TenantID as a Claim or Session variable for CRUD operations and don't know what code I would need to do that.

Thank you

I will be using the multitenant option and want to sell my SaaS product at different levels based on the number of User Licenses for each Tenant - example 5 Users, 10 Users, etc. A Tenant could have as many User Accounts as they want but only the Number of User Licenses purchased could be active at any one time. So the Tenant could purchase a 10 User License and could create 10 Active Users. In order to add another Active User, they would have to Deactivate one user. So they could have 11 users (or more) but only 10 Active Users. This would be a great addition to my project.

Is this a feature that you would consider adding?

Showing 21 to 28 of 28 entries