Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Outofmemory DownloadText() downloading Blob

$
0
0

with this code:

CloudBlockBlob blockBlob = syncMsgContainer.GetBlockBlobReference(blobId);                return blockBlob.DownloadText();

We get this error intermittently. Is there any suggestions on how to best troubleshoot this? We have a Blob that is about 80MB.

'Insert'  Base Exception:  Type: System.OutOfMemoryException  Assembly: System.OutOfMemoryException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089  Source: mscorlib  Message: Exception of type 'System.OutOfMemoryException' was thrown.  StackTrace:    at System.Text.UTF8Encoding.GetString(Byte[] bytes, Int32 index, Int32 count)     at Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob.DownloadText(Encoding encoding, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext)     at Common.Azure.BlobContainerWrapper.DownloadBlob(String blobId)     at DbSyncService.Components.MessageProcessor.GenerateDMLInsertStatement(TableDataChanges change, Dictionary`2 columnTypes)     at DbSyncService.Components.MessageProcessor.ApplyDMLTableDataChange(TableDataChanges change, Guid srcLocationId)     at DbSyncService.Components.MessageProcessor.ProcessDataDMLMessage(IncomingBusMessage msg, Guid srcLocationId)  TargetSite: GetString      


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>