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.
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.
User contributions licensed under CC BY-SA 3.0