Not enough storage is available to complete this operation

Ranjith Venkatesh picture Ranjith Venkatesh · Jul 8, 2011 · Viewed 65.7k times · Source

Environment:

  • Visual Studio Ultimate 2010
  • Windows XP
  • WPF Desktop Application using .NET 4.0

We have a desktop application which plays a video. This video is part of a project and the project is packaged into the installer. Every once in a while building the installer project shows this error message:

Not enough storage is available to complete this operation

If I restart Visual Studio it works.

Is there a way to avoid this? Is there a better way to package videos in an installer?

Answer

cosmin picture cosmin · Jul 11, 2011

This usually happens when the build process needs a lot of RAM memory and cannot get it. Since restarting Visual Studio fixes the problem, most likely it also your case.

Try closing some of the running applications. You can also try adding more RAM to your machine or increasing the page file.