NOt sure what was wrong but it ran at home okay so have reinstalled VS at work and it works as expected.