Verify that the connection string is correct, because you're receiving an exception saying that the server isn't accessible.
Loading it from the resources shouldn't matter. Place it in your code directly, and then make sure everything is working fine.