Error: "data\rights.dat is already open"
J1102
> "Opening any project that is integrated with sourcesafe via Visual Studio 2005 causes the status.dat file to remain opened (it never closes)."
I cannot reproduce this. VS should close the connections to the database when the solution is closed. Also, when an application is closed Windows will close all files opened by that process (even if the process forgot to close them), so at least when VisualStudio is closed the file should be closed, too.
You may have other applications that keep the file open. ProcessExplorer is your friend to search for open handles...
Alin
BreSmith
SelArom,
Close all the programs that are connected to this database (including from other computers). Disable LAN service using VSS Admin->Server->Configure->LAN. Reboot the machine if you need to.
Now do the search in Process Explorer (Find->Find Handle or DLL…) for rights.dat. You should not see any entries pointing to your rights.dat file. If you do then you need to look which process has the handle open on this file.
If you do not have this file opened anymore could you try opening VSS Explorer and try adding a file to the database Did this work If not what exact error message did you get
Could you try to create new database on the same server and see if you can work with the new database
Derek C
sdor
Hi SelArom,
Just to clarify, it sounds like you set up your SourceSafe database on your desktop and are trying to connect remotely on your laptop through the LAN. Can you connect to the database you created on your desktop from your desktop It sounds like you might have a permissions problem on the folder you setup the database in. Double-check that the username you're connecting with from the laptop has permissions on that folder on your database host machine. Also, download http://www.sysinternals.com/Utilities/ProcessExplorer.html for your environment and use the tool and look through the process tree to find the application that is using the file you mentioned. Let me know your results.
Best Regards,
Steve
ITLionWoo
This should work. There is something special about you laptop or desktop configuration.
Do you have any service running that can affect file closing (like an antivirus) or connections through the share We had similar problem when earlier version of Virtual PC installed on Windows XP
When you get this message can you check if this file is opened on both server and client or only on the server
Have you tried going the other way Making your database on the laptop and trying accessing it from your desktop
Yasir Mahmood
The answer we got from MSDN guys was that they had other important things to work on, but they are working on it. Right now, the old VSS page doesn't even contain (anymore) the news that VSS2005 has shipped, so they are editing content... I'm still hoping to see someday the new page in place...
I doubt this has anything to do with TFS, the enterprise-level target audience for TFS is different from VSS (small dev teams).
Alin
Raymond Roelands
SelArom,
I had the same issue with one of my VSS databases except that it was the status.dat file that was open. I found this solution, which I applied, and that solved my problem. Perhaps it will solve yours too. Good luck.
http://www.codecomments.com/archive356-2005-1-379463.html
Bob
Masroor ul Hassan
SelArom wrote:
<snip>In fact I can't even find the official Microsoft Page for this program! Is MS downplaying its existence to get people to migrate to TFS

Error: "data\rights.dat is already open"
programmerjoey
Hmmm… from what I see you already have several connections to this computer.
Could you check how many sessions are opened on this computer in Computer Management->Shared Folders->Sessions. Look in Computer Management->Shared Folders->Opened Files to see which files are opened from your computer by others.
XP limits number of clients to 10.
Also, it is really not a good idea to have VSS database under your documents and settings folder. This folder is for storing your private files and default ACLs are set to protect them. You may have problems with access rights if you keep your database in this folder.
You can simply move this database in new location, recreate the share and reset file access rights to make it work in new location.
Have you tried creating new database and accessing it
PjV
the thing is, I don't have ANY connections to the computer through sourcesafe!! It just gives me that error message, even if I'm trying to connect on the machine it's hosted on... this is really getting hair-pulling...
so here is what I did. I uninstalled the program and deleted the sourcessafe database from the "My Documents" folder. I reinstalled visual sourcessafe and created a new database at c:\Visual sourcesafe. I logged in as admin and added a new user. I closed visual sourcesafe admin on the host machine. then I fired up my laptop and ran visual studio 2005. I opened a project and tried to add to source control, logging in as that new user and I get the same damn error. what am i doing wrong !
-SelArom
GTrz
CharlyA
chief_druid_tma
Do you get this error without ever connecting from another computer (Reboot the server and then connect to the database with VSS Explorer on the server using local path (not share) and then add project and files to the database)
Could you try to check open handles for this file with Process Explorer right after you reboot the server and then after you connect to this database with VSS Admin and then close VSS Admin.
You should have this file opened only while you are connected to this database, but it should not be opened after reboot and after VSS Admin is closed (assuming there is no connections from another computer)
Do you have any program or service running that may prevent this file from been closed Perhaps some antivirus
Do you have the same behavior if you create VSS database on your other computer
Do you always get the same exact error message (same text, same file) What is the exact message
Jamie Cansdale