I would try a couple of things
1. Create an app with just a button on that displays a message box on when clicked
try running that
if that works then you are more than likely trying to reference a library of some sort that you haven't transfered across and I would then start to debug your code in sections using try catch blocks.
if the block catches an error then narrow it down.
2. in the project you can determine what framework you are using by going into the project properties and then on the publish tab click on prerequisites and it will show you the famework version its using
3.
Google results