Could not load type System.Windows.Forms.Padding

Topics: For MSBee Users, User Forum
Aug 21, 2007 at 6:59 PM
Hey,

I'm getting the error below during the compile. Everything else seems to compile just fine, but it has problems during the resgen.


Target CoreResGen:

.......

error: Invalid ResX input.
error: Specific exception: TypeLoadException Message: Invalid ResX
input. ---> TypeLoadException: Could not load type System.Windows.Forms.Padding
from assembly System.Windows.Forms.


I get the error above 4 times (one for each form in my project). I'm assuming that this is caused because .Padding is new in .net 2.0.

So how can I fix this?
Aug 21, 2007 at 8:50 PM
If Padding is a new control in .Net 2.0, unfortunately you can't fix it. In order to compile with .Net 1.1, you can only use what is available in .Net 1.1. MSBee is not really recommended for UI application as Visual Studio 2005 WinForms designers uses a lot of .Net 2.0 only features that are not compatible with .Net 1.1


Thanks,
Bertan


Proto wrote:
Hey,

I'm getting the error below during the compile. Everything else seems to compile just fine, but it has problems during the resgen.


Target CoreResGen:

.......

error: Invalid ResX input.
error: Specific exception: TypeLoadException Message: Invalid ResX
input. ---> TypeLoadException: Could not load type System.Windows.Forms.Padding
from assembly System.Windows.Forms.


I get the error above 4 times (one for each form in my project). I'm assuming that this is caused because .Padding is new in .net 2.0.

So how can I fix this?

Aug 21, 2007 at 9:33 PM
yeah, I kinda figured that. Oh well.

thanks anyway.