Specified argument was out of the range of valid values. Parameter name: managedData
-
Wednesday, July 14, 2010 4:06 PM
I'm getting this exception:
Specified argument was out of the range of valid values.
Parameter name: managedData
at Microsoft.Synchronization.Files.FileDataRetrieverAdapter.ConvertManagedToUnmanagedData(Object managedData)
at Microsoft.Synchronization.SimpleProviders._SimpleSyncProviderProxy.LoadChangeData(ITEM_FIELDS& pItemKeyAndExpectedVersionInfo, IntPtr pChangeUnitsToLoad, IRecoverableErrorCallback pCallback, Object& ppChangeData)
at Microsoft.Synchronization.CoreInterop.ISyncSession.Start(CONFLICT_RESOLUTION_POLICY resolutionPolicy, _SYNC_SESSION_STATISTICS& pSyncSessionStatistics)
at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWaySyncHelper(SyncIdFormatGroup sourceIdFormats, SyncIdFormatGroup destinationIdFormats, KnowledgeSyncProviderConfiguration destinationConfiguration, SyncCallbacks DestinationCallbacks, ISyncProvider sourceProxy, ISyncProvider destinationProxy, ChangeDataAdapter callbackChangeDataAdapter, SyncDataConverter conflictDataConverter, Int32& changesApplied, Int32& changesFailed)
at Microsoft.Synchronization.KnowledgeSyncOrchestrator.DoOneWayKnowledgeSync(SyncDataConverter sourceConverter, SyncDataConverter destinationConverter, SyncProvider sourceProvider, SyncProvider destinationProvider, Int32& changesApplied, Int32& changesFailed)
at Microsoft.Synchronization.KnowledgeSyncOrchestrator.Synchronize()
at Microsoft.Synchronization.SyncOrchestrator.Synchronize()
For background: I'm using the SyncFX 2.0 with a FileSyncProvider and a custom provider which implements the FullEnumerationSimpleSyncProvider. The custom provider makes calls to WCF services on a remote server.
I'm not sure what the error is telling me?
All Replies
-
Thursday, July 15, 2010 8:24 AM
Using Reflector, I can see that this is the method that is throwing the exception:
public override object ConvertManagedToUnmanagedData(object managedData) { IFileDataRetriever fileDataRetriever = managedData as IFileDataRetriever; if (fileDataRetriever == null) { throw new ArgumentOutOfRangeException("managedData"); } return new UnmanagedFileDataRetriever(fileDataRetriever); }
So it looks like either null is being passed to the method, or it isn't an IFileDataRetriever.
-
Wednesday, August 03, 2011 9:42 PM
This exception is raised when LoadChangeData returns null instead of a FileDataRetriever object.