NotSupportedException was unhandled

hello, I got this exception on the first line of this code in the designer:
//
// pictureBox1
//
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(3, 3);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(222, 94);

Basically i just added a picturebox to contain a jpg image. this form is common to all the applications and they work fine with the others. but the app im working on throw me back the error message. Im using VS2005 CF .net 2.0 so do the other app (which are written by me too). So i don't get it. why the others are fine but this later doesn't work.

Any suggestion


Answer this question

NotSupportedException was unhandled

  • ChillyWilly

    Fixed the problem by creating a new project and copy and paste old files over.
    I still don't know why the IDE gives me the error.

  • ryan101

    I also change the picture form jpg to bmp and still not working. It only works when the picture is not there. a background color would work. I over checked that i implemented the same as the others apps. but i still can't figure out why it's not working.

  • lawrence ZR

    Having the same problem, I'll try your solution

    Thanks


  • Venu g

    I checked it again and below the NotSupportedException was unhandled message, it's written
    System.Drawing.Bitmaps

    Is there some kind of conflict in there

  • Ibrahim Khalil

    I remembered I started this app at home where i use VS2005 and then finish it up at work. so the environment should be the same.
    do anyone have a clue about that
    Any suggestion will be very appreciated.

  • NotSupportedException was unhandled