Tuesday, November 18, 2014

Visual Studio Error: Unable to embed resource : Not enough memory to complete the operation

Error:

While building your project in VS 2010, you could get the following error:

Visual Studio Error: Unable to embed resource : Not enough memory to complete the operation

Solution:

This is a common issue in VS 2010, which have been discussed on a lot of forums, but I think nobody is assure about the solution. I get this error today, and took about half an hour to try to resolve it but I got no fruitful result. 

The main reason behind this problem is lack of memory and the project size expansion. Therefore, the Windows runs out of the memory. The quick and temporary solution is to select all files or at least the big-ones (specially the Crystal Reports) from your project using the solution explorer, check if their properties are set as Embedded Resource, change it to Content, then try to run the project. Don't change the files on which you are currently working on. This will prevent VS to embed unnecessary files. But remember, you will have to re-embed these files while building the final version like setup or publishing the project.

No comments:

Post a Comment

Popular Posts