Code now compiling but fails to send message, exception thrown in EnpointWrapper