I have a big issue that I am trying to resolve for more than a week. Appreciate if you could enlighten me.
If I run the below code directly via VS 2010, it returns me with the correct result.
If I tried to run the same code directly from IIS 7.5 (using CRMAppPool) it reurns "SYSTEM"
If I'm trying to get the logged in User in crm 2011 using WhoAmIRequest class , it always return the system user instead of the logged in user I don't know why??
Thank and really hope to get good answer from you soonest.
My code as below: (I have use the latest DLL file from SDK)
Public _service As IOrganizationService
._service = _serviceproxy
Dim currentUserId As Guid = whoResp.UserId
A bit of an old thread - but for anyone who has this problem - a common reason is you are logged in with the same user as the Dynamics CRM service account.