I was setting up Visual Studio 2010 to hook up with an existing .NET project that existed in source control. When I tried to open the solution file in VS 2010, I received the following error (My .sln file exists in D:\data\AppName directory):
D:\data\Static\website : error : Unable to open the Web site 'D:\data\AppName\website'. The Web site 'D:\data\AppName\website' does not exist.
After searching and searching, I finally found a suggestion that I needed to delete the .suo file in the same directory as my solution file (.sln file), which I did Then I re-opened the solution in VS 2010 and the path was resolved correctly to the Web site project.
The error was even more confusing as the path D:\data\Static\website is correct. I still don’t know why VS 2010 was trying to find it in D:\data\AppName\website. But deleting the .suo file worked and I am moving forward now!