Am writing an event receiver for which only the assignedto person or some special SharePoint groups are getting the access to the particular Item. this is written in my itemadded and itemupdated eventhandler methods.
But when I am a user who doesn't have access to this item in the document library or splist, I am getting the error:
"No item exists at ... It may have been deleted or renamed by another user"
how can I mitigate this? What error handling mechanism I need to apply for removing this error and show some user-friendly error or any other meaningful approaches.
Can I show some user-friendly error like "you don't have access to this document/item" when an unauthorized user tries to access the item and redirect to the list view page or home page?
as per this blog http://blog.sharepointalist.com/2013/03/sharepoint-2013-event-receiver-redirect.html , sputilitty.redirect wont work and am using itemupdated event only. so i cant user csrrendermode as well.