I hav a windows forms application built using VS 2008 which I am trying to migrate to VS 2010 & .net 4.0.
I got this nasty bug and found that it is due to the embedded images in the resource file.
<!-- [if gte mso 10]> <mce:style>
The "GenerateResource" task failed unexpectedly.
System.InvalidOperationException: The security state of an AppDomain was modified by an AppDomainManager configured with the NoSecurityChanges flag.
I tried the following solutions suggested in various forums.
I added the <