What’s the error/exception Visual Studio gives you? Are you sure the connection is still alive at that point?
Also, clients don’t need to send the hostmask, just PRIVMSG #channel :message is enough, and you’re missing a space between PRIVMSG and # in sendChatMessage.