Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

WorkItem.Save API getting System.OutOfMemoryException when uploading a large attachment

$
0
0

I'm using the TFS API in TFS 2013 Update 4.

When uploading a large (700MB +) file as an attachment to a work item, I will periodically get the following error:

The server returned the following message:

Exception of type 'System.OutOfMemoryException' was thrown.

 

Stack Trace:    at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.UploadAttachments()

   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.PreSave()

   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.PreSave(WorkItem[] workItems)

   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemStore.SaveWorkItems(WorkItem[] workitems, Boolean bulk, SaveFlags saveFlags)

   at Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.Save(SaveFlags saveFlags)

Is there a limitation to the size of an attachment or some way to get more memory?

- Bruce


Bruce



Viewing all articles
Browse latest Browse all 6687

Latest Images

Trending Articles



Latest Images

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