Search code examples
visual-studioexceptionbuildvisual-studio-2008resharper

Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown


We have VS.Net solution with 20 projects in it.

Occasionaly, in VS.NET, when we try to build/debug our solution, we get following error:

Unknown build error, 'Exception of type 'System.OutOfMemoryException' was thrown

Only way to "fix" this issue is to reopen Visual Studio and then solution build goes well, but again after some time OutOfMemory exception occur again. It's really annoying to reopen Visual Studio couple times a day, so do you know some workaround for this issue ?


Solution

  • JetBrains is aware of this issue, and they provide some fix for it, using this fix solved my problems for now:

    http://www.jetbrains.net/confluence/display/ReSharper/OutOfMemoryException+Fix


    Edit: However, OutOfMemory exception is occuring again, but it's not as often as it is when I dont use this JetBrains fix.