we are using Microsoft Enterprise Library for logging errors into db.We are using integrated windows authentication.we have created a user principal object implementing IPrincipal interface with generic identity using dummy username(not a logon windows username)
and setting our own authentication type and assigned that created principal to the current thread.But when we tried to populate the dictionary for ManagedSecurityContextProvider using logentry.ExtendedProperties we are getting an exception "Attempted
to perform an unauthorized exception".But the same we created a user principal object implementing IPrincipal interface using a logon windows username and authentication type we can successfully populate the dictionary for ManagedSecurityContextProvider.
code creating an exception is :
provider = new Microsoft.Practices.EnterpriseLibrary.Logging.ExtraInformation.ManagedSecurityContextInformationProvider();
Pls help to resolve this issue..