Not enough storage is available to process this command (VS compile, runtime)

0

I am getting the following error in Visual Studio during the build:

...\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2868,9): error MSB3021: Unable to copy file "obj\Debug\someproject.dll" to "Bin\Debug\someproject.dll". Not enough storage is available to process this command.

And sometimes (if I could compile the solution) the following one in run-time when starting the web application:

Could not load file or assembly 'SomeWebSite' or one of its dependencies. Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)

I have already tried increasing IRPStackSize to it's maximum value, but it did not help.

The problem seems to disappear temporarily after rebooting, but then it happens again.

  • Windows 7 32-bit SP1
  • Visual Studio 2010 SP1
  • Silverlight 5
c#
windows
visual-studio-2010
visual-studio
silverlight
asked on Stack Overflow Feb 21, 2013 by maximpa

1 Answer

0

The work-around is to remove the obj folder from all of your projects inside the solution.

This folder can be created again upon building the project hence no harm to the project.

answered on Stack Overflow Feb 21, 2013 by Ashok kumar

User contributions licensed under CC BY-SA 3.0