Today I started having a problem with my BOS I am hoping to get some help.
After alot of digging I have come up with the following conclusion.
Any entity that inherits from my AuditableEntity class performs security checks using the SaveSecurityCheck override. At that time I check to see if the current Principal objects has suffecient rights, which they do. Then I call the base classes AuditSelf method which then goes on to call another method to create the AuditValues. At that point I perform another security check to see if this person can create new records. If they can then it bypasses this and moves on. If not it marks this item as InActive and then it is flagged to be viewed and approved by an Administrator or any other person with permissions.
The problem I am having is that when I go to create the AuditValues the Principal object fails for the same security check it passed on before it entered the AuditSelf method.
What can be causing this? I can not recreate this on the development version. I found that this is only happening on the version running through the BOS.
Edited by orcities - 19-May-2009 at 3:01pm