Hello,
I upgraded a .NET 3.5 Solution written in VS2008 to VS2012. (Simply by opening the solution in VS2012)
Everything went fine, the code can be compiled.
When running the code the IDE presents me the following Errormessage:
Location:<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.Daimler.Sisam.UI.SBE.FormSBE
End Sub
Error: An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
It seems that the System cannot find the System.Drawing.dll 4.0. For this should be installed (Framework 4.0 and 4.5 are present) I don't understand why the System is looking for it. Every reference is set to the Drawing 2 dll.
I want to stick to framework 3.5 and the contained Drawing 2 dll. I don't want any reference to a higher framework because it will not be present on the PCs where the software will be installed.
Do you know why this happens and what I can do?
Thank you very much
Best regards
Jens
additional information copied from non-solution below
Thanks for your answers,
These settings were the First I checked and they all were 3.5
....
Any other ideas?