My best advice is to learn the differences between getting a program to run with VS, and the sharp develop.
do all your troubleshooting in sharp develop ( no starting and constantly restarting revit), and then paste your code to VS.
oddly enough, the debug menu doesn't work in sharp either. Again, you have to set break points, and run the code from the revit macros dialog box.