Reputation: 5788
I have a website that is failing to load. The solution contains 8 projects, one of which is a 'website'. Previously the website was in another folder and I referenced that folder in the solution. Well, I've since deleted the branch that kept the website in the other folder, and now, in the solution explorer, the website says "nameofwebsite (load failed)". When I right-click the website and choose 'Reload Project' I get a model that says "Unable to retrieve folder information from the server. Cannot read from folder 'C:\Users\\Source\Workspace...\path\to\OLD\location\of\website'. The system cannot find the path specified."
I've tried clearing the TFS cache in C:\Users\\AppData\Local\Microsoft\Team Foundation\5.0\Cache, but that did not help.
Any advice is appreciated. There's currently nothing in the solution file that mentions the folder it can't find. In fact it's mentioning a folder that I've long since deleted... Why does it want to look there still?
Thanks.
Upvotes: 2
Views: 2667
Reputation: 126
Update your IIS settings:
Steps:
Open IIS Settings in Windows.
Choose the website and click "Basic Settings"
Update the "Physical Path" to the correct directory.
When you re-open the Visual Studio solution, it will have the correct path and not error.
Upvotes: 0
Reputation: 5788
This was caused by incorrect path to the web project in IIS. Configuring the correct location solved the problem.
Upvotes: 3