On Step 3 of 1.2.3 in the upgrade guide, I'm getting a System.OutOfMemoryException pointing to Sitecore.Update.Utils.FileUtils.SerializeFile(Stream stream, String location) +137.

Installation wizard installed fine and the UpdateInstallationWizard.aspx page comes up fine.

In /sitecore/admin/packages, it looks like, it tried to write the file "Upgrade from 8.1 rev. 160519 to 8.2 rev. 160720.update", but it's got zero length.

Any ideas?

  • How much memory you have in this system ?
    – Harsh Baid
    Commented Sep 27, 2016 at 15:53
  • 16gb, 47% used.
    – EricB
    Commented Sep 27, 2016 at 17:41
  • 1
    Can you post the full stacktrace, please? Might help clue someone in, as to what might be going on.
    – Mark Cassidy
    Commented Sep 28, 2016 at 8:40
  • have you changed the maxAllowedContentLength setting (1.2.3 step2) ? Also, do you have correct file/folder level permission setup for filesystem ? Commented Sep 29, 2016 at 4:37
  • Also if you can post anything you see related in the log where this exception was captured is helpful
    – Diego
    Commented Sep 30, 2016 at 16:01

1 Answer 1


You must change the maxAllowedContentLength setting to increase the maximum allowed download size of the update package. To do this:

In a text editor, in the \wwwroot\\Website\sitecore\admin\web.config file, change the maxAllowedContentLength setting from:

<requestLimits maxAllowedContentLength="1048576000" />


<requestLimits maxAllowedContentLength="4194304000" />

for more information check the upgrade document: Upgrade Guide

  • Ahh man, I kept changing this at the root web.config level.
    – MikeD
    Commented Nov 30, 2016 at 2:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.