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

Activities of "maharatha"

Weird Issue :

I am almost there :

  1. When I try to create a tenant in a separate database I am able to do it but once the database is created I am facing foreign key violation issue so the Tenant record is not getting save though the database is created :

System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.Entity.Core.UpdateException: An error occurred while updating the entries. See the inner exception for details. ---> System.Data.SqlClient.SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_dbo.AbpRoles_dbo.AbpTenants_TenantId". The conflict occurred in database "ert", table "dbo.XXX_Tenants", column 'Id'. The statement has been terminated. at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__167_0(Task1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult() at System.Data.Entity.Core.Mapping.Update.Internal.DynamicUpdateCommand.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult() at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.<UpdateAsync>d__0.MoveNext() --- End of inner exception stack trace --- at System.Data.Entity.Core.Mapping.Update.Internal.UpdateTranslator.<UpdateAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown ---

I am good for now. I missed out the AbpZeroDbMigrator.cs. Do you have source code which only provides file that were changed in a particular release. That would make migration pretty easy

Hi Hilkan -

Thank you showing thr right direction. I always to the compare and upgrade, but the code has changed a lot with respect to migration where in Host and Tenant folder has been created. It is no where mentioned to get rid of the old files, though it's obvious but helps people like me who need more of guidance.

I am able to compile the code and now facing a different issue :

'XXXX.MultiTenancy.TenantManager' is waiting for the following dependencies:

  • Service 'Abp.MultiTenancy.IAbpZeroDbMigrator' which was not registered.

I compare the code and it has all the required changes, but I am not sure what's causing this. This up gradation is a difficult one for existing users.

Quick help is appreciated.

Sorry to be impatient but a quick response is much appreciated. I am kind of in the middle of my upgrade and have spent quite some time to upgrade it and this is the last piece which is preventing me to compile it.

Here we go !!

I have started updating to latest Abp Zero you guys released today and below is my problem :

  1. Error CS7036 There is no argument given that corresponds to the required formal parameter 'roleId' of 'UserRole.UserRole(int?, long, int)'

  2. 'DefaultLanguagesCreator' is an ambiguous reference between 'XXXXX.Migrations.Seed.Host.DefaultLanguagesCreator' and XXXXXX.Migrations.Seed.DefaultLanguagesCreator'

Please help.

Thanks Hilkan. Yes I have gone through the blog and pretty excited about the Hybrid model you are introducing. I originally planned to take this route but with the Abp limitation had cancelled it. But with this release I am really excited.

This is the most important update you guys are pushing out and I thank you for all the effort you and your team have put into this

Hi -

I am getting errors after updating to Abp 0.9.0. I guess you need to release the Abp Zero upgraded version as well else I am unable to proceed further. Some of the errors are :

1)No overload for method 'SubscribeToAllAvailableNotificationsAsync' takes 2 arguments

  1. Argument 4: cannot convert from 'long[]' to 'Abp.UserIdentifier[]'

  2. cannot convert from 'long' to 'Abp.UserIdentifier'

I am using Organization as My Company. Also I want to implement something like RLS (Row Level Security) for each entity. So using Organization is not an option. I am looking into EFF Dynamic Filter and Predicate builder to achieve this. Will update this ticket with my findings. In case you have some idea please let me know.

When I say access to Entities that would mean certain rows in the Entities. The details of the entities and rows are being stored in Entity R

Question

Hi Hilkan -

I am implementing some kind of access restriction into my application.

Let's say I have multiple entities Entity A, B,C which I want to provide restrictive access to certain users.

For that I am planning to use data filters, IMayHaveUserRestriction.

I created the interface as well , but I can't implement this in my Entity A else it would create a column UserId in Entity A ,B,C which I definitely don't want.

My restriction rules or data are placed in a another Entity called Entity R.

The whole idea is to create a data filter which I can use it in any entity and it would filter based on some rules.

Could you guide me how to do this using Abp ?

Thanks, Partha

Showing 271 to 280 of 326 entries