I cannot speak for the close voters as I was not one, but my hypothesis follows:
Your question, in its original form, was fine. It was short, sweet, and to the point. It included information about what you'd tried and the error it produced. Not a fantastic question by any means, but far better than most posted by new users.
Then... you started editing it. Adding some more detail. Which is fine! But then... you kept editing it. And kept editing it. Adding info that's irrelevant and most crucially, changing the title to ask a completely different question to the original one.
That's a no-no: questions on Stack Overflow are not expected to change materially after they are asked, because doing so is likely to invalidate any answers already posted there. If you discover that your original question was asking the wrong thing, you should rather post a new question, linking back to the old question with a short explanation so that people don't think you're reposting the same question to get attention.
And then you kept on editing the question, adding more and more detail (some of it again irrelevant), and some users viewing it got alarmed that it kept changing because again, that could invalidate any answers, and so they voted to close it to calm you down, presumably with the intent that once you've finished your edit spree, they'd return to reopen it.
Stack Overflow should be the last place you ask a question. It's evident to me from the revision history that after you asked that question, you continued to investigate and search and figure out the issue, and that's great - if we had more users who were actually willing to look further than the end of their noses, the site as a whole would be in a much better place.
But Stack Overflow isn't a place for recording your actions while you're performing an investigation. It's a place where you post a question after you've exhausted all available avenues of that investigation. (You can also post a question and answer it yourself, if you've performed an investigation that succeeded with an outcome that you feel would be useful to future users.)
And a question is effectively expected to be immutable. It should contain all the research you've done, all the information to provide context, and a clear description of the problem to tie those pieces together. If you have to substantially modify a question after you've asked it, you've either asked it too early or you've asked the wrong thing.
Further, questions should not contain irrelevant information, such as "thanks" or "I'm a new user" or "I asked this question elsewhere" or "hope this helps". That information does not contribute to answering the question, which means it should be left out (and in this case, is why it was edited out).
In future, keep your research progress steps in a text file on your desktop, and use them to write a full and detailed question once you're sure you either have a workable solution, or face a problem that others might be able to help with.
Please understand, that Stack Overflow gets literally thousands of new questions every day. Practically that means that in order for any question you ask to have a chance of getting an answer (never mind a good answer), that question needs to stand out from the crowd. And the best way to make a question stand out is to ask one that's full, complete, and answerable.
Conversely, probably the worst way to go about asking is to post a question that lacks enough detail to be answered, because such a question is likely to be ignored at best and closed at worst - both paths are generally a death knell for any question, regardless of how good it may be at its core, or may eventually become through editing. So help yourself by writing a good question from the outset, and you'll find your time on Stack Overflow to be far more rewarding.