Cannot open files in Visual Studio but in Delphi and Notepad
- by Andrew J. Brehm
About an hour ago Visual Studio 2008 decided that it cannot find files any more.
This is on 64 bit Windows Vista.
When I right-click on a text file (source code or otherwise) and select "open with" and "Visual Studio 2008", I get the following error (example):
Windows cannot find 'C:\Users\ajbrehm\Documents\Visual Studio 2008\Projects\Hello Prism\Hello Prism\Main.pas'. Make sure you typed the name correctly, and then try again.
When I right-click the same file and select "open with" and "Delphi 2010" or "Notepad" (both other options available for text files on my system), the file opens correctly.
Oddly enough when the file is part of a Visual Studio project and I open the project itself with Visual Studio (this works), I can open the file from within Visual Studio.
Any ideas what might be going on?
This started about an hour after I made a complete backup of my Vista VM and after I installed IIS 7, SQL Express, and Sourcegear Vault. The first files I noticed couldn't be opened in Visual Studio any more where Pascal source files in checked-outed folders from Vault. And Vault also seems to be unable to see one of the sources files and claims they don't exist. I found out about Visual Studio not opening ANY files any more when I tried to recreate the file Vault refused to see.
Update: I just checked. Another user, "administrator", can still open text files with Visual Studio 2008. Both users have administrator rights.
Update: I just restored the hours-old backup. Same problem. Apparently whatever triggered this happened before the install of IIS 7 and SQL Express. Never noticed it before.