Hi,
We recently upgraded the framework and currently we are facing the below errors
'Abp.MultiTenancy.AbpTenantManager<Devicedesk.Focus.MultiTenancy.Tenant,Devicedesk.Focus.Authorization.Roles.Role,Devicedesk.Focus.Authorization.Users.User>' does not contain a constructor that takes 1 arguments
'Abp.Authorization.Users.AbpUserStore<Devicedesk.Focus.MultiTenancy.Tenant,Devicedesk.Focus.Authorization.Roles.Role,Devicedesk.Focus.Authorization.Users.User>' does not contain a constructor that takes 7 arguments
'Abp.Authorization.Users.AbpUserManager<Devicedesk.Focus.MultiTenancy.Tenant,Devicedesk.Focus.Authorization.Roles.Role,Devicedesk.Focus.Authorization.Users.User>' does not contain a constructor that takes 10 arguments
'Abp.Authorization.Roles.AbpRoleStore<Devicedesk.Focus.MultiTenancy.Tenant,Devicedesk.Focus.Authorization.Roles.Role,Devicedesk.Focus.Authorization.Users.User>' does not contain a constructor that takes 4 arguments
Abp.Application.Editions.AbpEditionManager' does not contain a constructor that takes 0 arguments
Can you please let us know how we can resolve the above errors
We have upgraded most of the packages found in
<a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Zero/Nuget-Packages">http://www.aspnetboilerplate.com/Pages/ ... t-Packages</a> <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Nuget-Packages">http://www.aspnetboilerplate.com/Pages/ ... t-Packages</a>
except the below packages
Abp.NHibernate
Abp.FluentMigrator
Abp.Zero.NHibernate
As the above packages are not referred in the projects
2 Answer(s)
-
0
Hi, You have to manually merge those files.Let's take this error :
'Abp.Authorization.Users.AbpUserStore<Devicedesk.Focus.MultiTenancy.Tenant,Devicedesk.Focus.Authorization.Roles.Role,Devicedesk.Focus.Authorization.Users.User>' does not contain a constructor that takes 7 arguments
**Solution :**You have to use latest code snippet for the ".Core\Authorization\Users\UserStore.cs" file.You can use Win-merge toolto compare those files.Good Luck ! :)
-
0
Hi,
All you need to pass correct services to the base class. You can see release notes here: <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero/releases">https://github.com/aspnetboilerplate/mo ... o/releases</a> In each release, I describe which constructors has changed. There are also working samples. Whenever base class wants a dependency, inject it to your class and pass to the base as others.