Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 30855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:30:48+00:00 2026-05-10T13:30:48+00:00

When building a VS 2008 solution with 19 projects I sometimes get: The GenerateResource

  • 0

When building a VS 2008 solution with 19 projects I sometimes get:

The 'GenerateResource' task failed unexpectedly. System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.    at System.IO.MemoryStream.set_Capacity(Int32 value)    at System.IO.MemoryStream.EnsureCapacity(Int32 value)    at System.IO.MemoryStream.WriteByte(Byte value)    at System.IO.BinaryWriter.Write(Byte value)    at System.Resources.ResourceWriter.Write7BitEncodedInt(BinaryWriter store, Int32 value)    at System.Resources.ResourceWriter.Generate()    at System.Resources.ResourceWriter.Dispose(Boolean disposing)    at System.Resources.ResourceWriter.Close()    at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(IResourceWriter writer)    at Microsoft.Build.Tasks.ProcessResourceFiles.WriteResources(String filename)    at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile(String inFile, String outFile)    at Microsoft.Build.Tasks.ProcessResourceFiles.Run(TaskLoggingHelper log, ITaskItem[] assemblyFilesList, ArrayList inputs, ArrayList outputs, Boolean sourcePath, String language, String namespacename, String resourcesNamespace, String filename, String classname, Boolean publicClass)    at Microsoft.Build.Tasks.GenerateResource.Execute()    at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)   C:\Windows\Microsoft.NET\Framework\v3.5 

Usually happens after VS has been running for about 4 hours; the only way to get VS to compile properly is to close out VS, and start it again.

I’m on a machine with 3GB Ram. TaskManager shows the devenv.exe working set to be 578060K, and the entire memory allocation for the machine is 1.78GB. It should have more than enough ram to generate the resources.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:30:48+00:00Added an answer on May 10, 2026 at 1:30 pm

    I used to hit this now and again with larger solutions. My tactic was to break the larger solution down into smaller solutions.

    You could also try:

    http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 144k
  • Answers 144k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The official one is 6.3. It's dated 11/6/2008 and supports… May 12, 2026 at 8:37 am
  • Editorial Team
    Editorial Team added an answer I suggest not swapping the content itself, but rather placing… May 12, 2026 at 8:37 am
  • Editorial Team
    Editorial Team added an answer First, in reply to your comments: But i'm a newbie… May 12, 2026 at 8:37 am

Related Questions

I am so used to attach a process when debugging ASP.NET application in .NET
Does anyone know how to tell VS(2008) where to save the obj folder when
I have a solution that has a plain old asp.net website and a winforms
I recently upgraded a VS2005 web deployment project to VS2008 - and now I

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.