“The selected file is not a valid solution file” error when trying to open source safe database

Locked “The selected file is not a valid solution file” error when trying to open source safe database

  • Monday, February 14, 2011 11:04 PM
     
     
    I recently re-built my development machine which now uses windows 7. On this new machine, VS 2010 can no longer open sln files directly from SS 2005. These are valid 2010 solutions (orginally created witih VS 2010) that worked fine until I re-built my machine. My co-workers have the same setup and do not have this problem.

    The message I get is "The selected file is not a valid solution file".

    I've re-built many times and used many installs of VS and never had a problem opening sln's from SS using VS 05, 08 or 10. I've just never seen this before. My co-workers have not had this problem either

    I have re-installed SS 2005 as well as the latest SS update but nothing works.

    VS 2010 can open solutions from the file system just fine, so it must be a SS thing.

    Any ideas?

All Replies

  • Tuesday, February 15, 2011 7:23 AM
     
     

    Try install the update here and run regsvr32 “%programfiles%\Microsoft Visual SourceSafe\tdnamespaceextension.dll”. Hope it helps.

    Regards,


    Catherine Sea
    Version Control Software | Software Configuration Management Solution

  • Tuesday, February 15, 2011 2:50 PM
     
     
    Actually, I have installed that update and ran the command already :-(
  • Sunday, February 20, 2011 1:46 PM
     
     
    Hello, which version of VSS did you install? The following one should fix your problem: http://archive.msdn.microsoft.com/KB976375
    Michal Malecki TFS Version Control
  • Tuesday, February 22, 2011 2:07 PM
     
     
    VSS 2005 VS 2010.  I already installed that patch.  In fact that's  the same one that Catherine linked to.
  • Wednesday, October 05, 2011 12:09 AM
     
     Proposed
    Make sure you run Visual Studio "As Administrator"
    • Proposed As Answer by AWADDELL Wednesday, October 05, 2011 12:09 AM
    •  
  • Tuesday, October 18, 2011 2:39 PM
     
     

    This is actually not related to VSS. When you open the sln file in VSS, it looks for the default program for sln file.

    Since you got the error message, it means the default program for sln in your system is referring to other programs (Like other version of VS, VC++ 6.0, etc...)

    You can try the steps below and see if it works for you.

    1. Right Click on the sln file in your file system.
    2. Choose 'Open with' -> 'Choose default program...'.
    3. Choose 'Microsoft Visual Studio 2010', check 'Always use the selected program to open this kind of file.'
    4. click Ok to apply the change.
    5. Try again.

    Good Luck :)