I tried all sorts of things including machine restart but did not work.
I realized the issues is because of the corrupted user solution file.
So to resolve this go to the folder with solution file. From the menu chose to see hidden files.
You will find yoursolution.suo file . Delete it and restart the visual studio and try to open the solution. It should be back