Use code tags for your code, quote or code tags for your error messages. Post full stack traces of any exceptions.