1

Been trying to fix this program for 5 hours now by searching forums, very tired by now. Nothing has been helpful, and I think my patience may have ran out.

Here's an list of what i am doing.

1st- I "publish" the program which compiles everything into a .exe and a resource folder 2nd- works flawlessly on my computer 3rd- copy it to my other computer(eventually renaming folders and everything to be exactly the same) 4th- open the .exe, this ridiculously unhelpful error pops up saying there was an unhandled exception in my application 5th- continue any way, my form is missing the background, 3 more images, 2 labels and a couple of drawings. but it has 6 labels and 2 picture boxes, I am not understanding why the labels, the background and this other picture box is not loading... this is very very frustrating and any small logical suggestions would be helpful.

Note: the program is 1378 lines long

Ryan Blevins
  • 166
  • 1
  • 9

2 Answers2

2

Are the images compiled as resources? If not, they may need to explicitly be copied during the deployment.

flatline
  • 42,083
  • 4
  • 31
  • 38
  • I just installed a newer VB.Net onto the one that's not working, I am also rebuilding the exe file with update resources. However I am not sure if the resources will affect it much as it worked on the other computer that it was created on. – Ryan Blevins Sep 12 '12 at 04:10
  • Wasn't sure what the dev environment was. For VS, in the properties explorer for each image, you can choose whether to compile as resource (or not). You can also choose there whether to copy it with the build output. Neither of these are on by default IIRC. – flatline Sep 12 '12 at 19:18
1

Fixed it. My images were called from C:/... they needed so be called from My.Resources.

Ryan Blevins
  • 166
  • 1
  • 9