none
Sync framework used to sync files throws Microsoft.WindowsAzure.StorageClient.StorageClientException: The request body is too large and exceeds the maximum permissible limit RRS feed

  • Question

  • We use MS sync frame work 2.0. We use it to sync files from a local file server to azure storage container. Recently i have started to notice the expection below. As a work around to this problem I delete everything that in the blob and resync it, which works fine for 5-6 days but the error comes up again. I would like to know why this happens and how to fix it.

    Exception:

    Microsoft.WindowsAzure.StorageClient.StorageClientException: The request body is too large and exceeds the maximum permissible limit. ---> System.Net.WebException: The remote server returned an error: (413) The request body is too large and exceeds the maximum permissible limit..

       at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

       at Microsoft.WindowsAzure.StorageClient.EventHelper.ProcessWebResponse(WebRequest req, IAsyncResult asyncResult, EventHandler`1 handler, Object sender)

       --- End of inner exception stack trace ---

       at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result()

       at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait()

       at Microsoft.WindowsAzure.StorageClient.CloudBlob.UploadFromStream(Stream source, BlobRequestOptions options)

       at CDNSyncUploadService..AzureBlobStore.InsertFile(FileData fileData, String relativePath, Stream dataStream) in C:\Projects\CDNSyncUploadService\AzureBlobStore.cs:line 274

       at CDNSyncUploadService.AzureBlobSyncProvider.InsertItem(Object itemData, IEnumerable`1 changeUnitsToCreate, RecoverableErrorReportingContext recoverableErrorReportingContext, ItemFieldDictionary& keyAndUpdatedVersion, Boolean& commitKnowledgeAfterThisItem) in C:\Projects\CDNSyncUploadService\AzureBlobSyncProvider.cs:line 271

       at Microsoft.Synchronization.SimpleProviders._SimpleSyncProviderProxy.InsertItem(Object pItemData, IntPtr pChangeUnitsToCreate, IRecoverableErrorCallback pCallback, IntPtr& ppNewKeyAndVersionInfo, Int32& pbCommitKnowledge)

       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()

       at CDNSyncUploadService.Sync.StartSync() in C:\Projects\CDNSyncUploadService\Sync.cs:line 171

    Thursday, May 9, 2013 7:49 PM

All replies