I keep getting this error message all the time. The same code works in xp32+VS2010 C#, when I bring it to win7/64bit, the error message appears. It started when I have a picturebox added to my form and have a jpg file inside the picturebox. I got "System.BadImageFormatException"
a couple of times, I really don't know how to fix that to go ahead. I have checked some posts in this forum, some ones suggested set my application target platform to X86. I did set my target platform to x86, not working.
I am wondering if anything else I can try. Any help will be appreciated!
The error message is:
Error 1 The "GenerateResource" task failed unexpectedly.
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(MemoryStream stream)
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, IS
View Complete Post