WhoAmI Failing

May 26 at 3:59 PM
Hi, I'm using XrmLibrary for CRM 2011. I'm getting an intermittent WhoAmIRequest error as pasted below. WhoAmI is installed, and this doesn't occur all the time, but is prevalent enough that it needs to be addressed. Have you ever seen this before?

System.ServiceModel.FaultException --- The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException message was 'Error in line 1 position 2139. Element 'http://schemas.microsoft.com/xrm/2011/Contracts/Services:request' contains data from a type that maps to the name 'http://schemas.microsoft.com/crm/2011/Contracts:WhoAmIRequest'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'WhoAmIRequest' and namespace 'http://schemas.microsoft.com/crm/2011/Contracts'.'.

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at XrmLibrary.Adapters.OrganizationServiceAdapter.Execute(OrganizationRequest request) in C:\Projects\PERT\CPAO\TFS\Cpa.Pert\XrmLibrary\Adapters\OrganizationServiceAdapter.cs:line 75
at XrmLibrary.Extensions.OrganizationServiceExtensions.WhoAmI(IOrganizationService service) in C:\Projects\PERT\CPAO\TFS\Cpa.Pert\XrmLibrary\Extensions\OrganizationServiceExtensions.cs:line 38
at XrmLibrary.Pooling.OrganizationServicePool.AddNewServiceToPool() in \XrmLibrary\Pooling\OrganizationServicePool.cs:line 49
at XrmLibrary.Pooling.OrganizationServicePool.Initialize() in \XrmLibrary\Pooling\OrganizationServicePool.cs:line 40
at XrmLibrary.Pooling.OrganizationServicePool.Instantiate(Int32 serviceIndex, Int32 initialServicePoolSize) in \XrmLibrary\Pooling\OrganizationServicePool.cs:line 28
at XrmLibrary.Services.InstantiateOrganizationServicePools() in \XrmLibrary\Services.cs:line 220
at XrmLibrary.Services.GetOrganizationServiceFromPool() in \XrmLibrary\Services.cs:line 147