• 1399/03/15

خطا هنگام بروزرسانی نقش admin :

با سلام و احترام، 

 

 خسته نباشید استاد، و ممنون بابت همه آموزشهای عالی که برای ما ارائه میدید.

مشکلی در هنگام ویرایش نقش وجود داشت به طوری‌که وقتی admin اقدام به ویرایش نقش خودش میکنه خطای زیر نشون داده میشه، این مشکل برای ویرایش نقشهای دیگر وجود نداشت، ممنون میشم اگه بنده رو راهنمایی کنید استاد.

An unhandled exception occurred while processing the request.

InvalidOperationException: The instance of entity type 'Role' cannot be tracked because another instance with the same key value for {'RoleId'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IdentityMap<TKey>.ThrowIdentityConflict(InternalEntityEntry entry)

  • 1399/03/15
  • ساعت 20:35

سلام

متن ارور مشخصه 

توسط یه کوئری دیگه در حال استفاده است


logo-samandehi