I recently experienced this same issue and found that it seems to be an issue with Shared Variables and Type Defs. I selected (check mark showing in radial box) Disconnect type definitions in the Additional Exclusions category of the build properties (right-click your build and select properties). All the other Additional Exclusions were selected as well. I deployed the application with Run as startup and it deployed correctly. Hope this helps whomever experiences this same issue.