Answering your own question is fine, but the question and answer need to be up to the same standards as every other post, or they will face the exact same consequences as any other post.  

If people don't consider your question useful, well researched, clear, appropriately scoped, on topic, etc. they will treat it just the same as any other question with those same problems.

Likewise, if readers feel that an answer isn't a useful solution, isn't clear, etc. they will act appropriately.  Just because the question author thinks that it was the best solution doesn't mean everyone else needs to agree with them.

The one person that felt that you were wrong to self-answer the question was simply mistaken; all of the people that felt that your question/answer just wasn't a useful/quality post regardless of who posted them are quite right to provide the appropriate feedback.