471,306 Members | 1,226 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

Strange error in VS 2005, .NET CF 2.0

We are using Visual Studio 2005 to create a .NET Compact Framework 2.0
application. In our solution, we have several projects. Sometimes, when
trying to build the solution, we get the following error:

The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: Collection was modified; enumeration
operation may not execute.
at
Microsoft.Build.Shared.ExceptionHandling.RethrowUn lessFileIO(Exception e)
at Microsoft.Build.Tasks.GenerateResource.NeedSeparat eAppDomain()
at Microsoft.Build.Tasks.GenerateResource.Execute()
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask (ExecutionMode
howToExecuteTask, Hashtable projectItemsAvailableToTask,
BuildPropertyGroup projectPropertiesAvailableToTask, Boolean&
taskClassWasFound)

This error can occur at any of the projects within the solution, and it
seems arbitrary at which of the projects it occurs. Restarting VS is
usually the solution, while sometimes a complete reboot of the PC is
necessary to fix it.

Has anyone encountered the same problem of can someone point us to a
solution? Thanks for any help,

--
Daan
Jan 4 '06 #1
1 1349
I have the same problem. It is very annoying.<br />Unfortunately, I don't know the solution. <br /><br />I have several projects in my solution too.<br />I encountered that exception is raised for project which references class library with custom controls.<br /> <br />I know only one solution ? Visual Studio restart :(<br /><br /> <br />I know only one solution ? Visual Studio restart :(<br /><br /><br /><br />Best Regards<br />Darek
Jan 4 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Zibi | last post: by
6 posts views Thread by WindAndWaves | last post: by
2 posts views Thread by Lauren Wilson | last post: by
4 posts views Thread by J. Jespersen | last post: by
reply views Thread by David Pratt | last post: by
11 posts views Thread by Martin Joergensen | last post: by
8 posts views Thread by =?Utf-8?B?R2Vvcmdl?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.