Added error message when transporttype incorrectly configured. Fixes #334