Visiting the palace of versailles is challenging; you will not be alone! Best tip is o buy your tickets in advance, and to be there on time. So it is well recommended to spend the night in Versailles, so you can get there before all the bussed from Paris arrive.
On this page I listed some hotels close to the Palace of Versailles and in the surounding area,. It may help you find a nice place to stay while you visit the Chateau and the nive town of Versailles.
DISCLOSURE: I get commissions for purchases made through some of the links in this article.