Hi,
I am trying to retrieve a Profile using the FindOptions class and I get the following exception:
There is no row at position 0.
Server stack trace:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at System.Data.RBTree`1.get_Item(Int32 index)
at System.Data.DataRowCollection.get_Item(Int32 index)
at Microsoft.Clm.Common.TypedData.CertificateDataSetGenerated.ProfilesDataTable.get_Item(Int32 index)
at Microsoft.Clm.BusinessLayer.Shared.FindOperations.CanCurrentUserViewProfile(Guid profileUuid)
at Microsoft.Clm.BusinessLayer.Shared.FindOperations.GetProfile(Guid profileUuid)
at Microsoft.Clm.Provision.FindOperationsByCulture.GetProfile(Guid profileUuid, CultureInfo uiCulture, CultureInfo culture)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Clm.Provision.FindOperationsByCulture.GetProfile(Guid profileUuid, CultureInfo uiCulture, CultureInfo culture)
at Microsoft.Clm.Provision.FindOperations.GetProfile(Guid profileUuid)
On the portal I can see that the user does have a profile and the Guid is a valid Active Directory Object-GUID.
This is the code I am using:
FindOperations.UseRemoting = true; var profile = FindOperations.GetProfile(new Guid("476d566c-2cb5-482c-99d0-bd2c8c8981ca"));
I do have access to the FIM System but I cannot find the cause of this problem. I gave checked the permissions using the PermissionOperations and everything returns true.
Could you guys help me on this...I would appreciate it.
Thanks a lot
- Edited by grifoxx28 Tuesday, June 09, 2015 10:24 AM