Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This problem can occur if .net 4.5 preview resgen is used to create the resource files. </p> <p>I have the same problem on my laptop(Windows 7, VS2010 Premium, VS11 Developer Preview). I got this problem with a simple forms project when i say 'localizable=true' on a form. In my case are no image data involved. The project is set to .net 3.5</p> <pre><code>private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.SuspendLayout(); // // Form1 // resources.ApplyResources(this, "$this"); //exception Could not load file or assembly 'System.Drawing, Version=4.0.0.0, </code></pre> <p>If i then copy this project to another machine(Windows 7, VS2010 Premium) and try to debug it, the error remains. The error goes away if i clean the solution(not the project)(or delete bin/obj by hand) If i then copy this solution back to the my laptop, the error is gone, but i cant see the form again in design view <code>'Error message: at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)'</code></p> <p>The reason for all this seems to be the .net version in the *.Designer.cs files. </p> <ol> <li><strong>Runtime Version: 4.0.30319.239</strong> on the computer where it works, </li> <li><strong>Runtime Version: 4.0.30319.17020</strong> on the laptop where i get the exception.</li> </ol> <p>Can anyone tell me where i can configure which resgen version is used when dealing with .net 3.5 projects?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload