Unable to Obtain Exclusive Access to Persistence File
Moderator: SourceGear
Unable to Obtain Exclusive Access to Persistence File
Can anyone tell me what generates the SOS error:
Unable to Obtain Exclusive Access to Persistence File
Of course if you can't tell me what generates the error, telling me how to fix the problem would b emuch appeciated.
David
Unable to Obtain Exclusive Access to Persistence File
Of course if you can't tell me what generates the error, telling me how to fix the problem would b emuch appeciated.
David
The SOS Clients persist file info locally. Since you can run two SOS Clients simultaneously (the GUI Client and IDE Client, for example), the clients local the "persistence file" when writing to it to avoid corruption. If the local cannot be obtained, the error message you are seeing is displayed.
This problem should only occur if a client is abnormally exited while it has a lock on the file, so that the lock is never released. If it occurs, you'll probably have to restart the machine before the lock will be available again.
This problem should only occur if a client is abnormally exited while it has a lock on the file, so that the lock is never released. If it occurs, you'll probably have to restart the machine before the lock will be available again.
Corey Steffen
SourceGear LLC
SourceGear LLC
I get this all the time
I am getting this message very often. After which I can no longer access the SOS server. Rebooting doesn't appear to help.
After a while the SOS server corrects itself and I can again access it.
After a while the SOS server corrects itself and I can again access it.
You could try closing SOS Client and Visual Studio -- but that may not be the fix you need.
I don't know of other ways to "unlock" a file that's in use by an application. Maybe other SOS users have some ideas.
You might also try just having one instance of SOS running on the client machine -- either the GUI or VS IDE client, but not both.
I don't know of other ways to "unlock" a file that's in use by an application. Maybe other SOS users have some ideas.
You might also try just having one instance of SOS running on the client machine -- either the GUI or VS IDE client, but not both.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
I used to be able to get it to unlock by starting the client up, and closing it before opening VS, but now that's not working anymore.
I just tried deleting the database file and rebuilding it, and it deleted ok, which tells me there is actually no locks on the file, yet VS 2005 still hangs trying to connect to the project.
Not all of the clients in out company use SOS to connect to VSS, some use direct VSS, which caused some problems with rebinding/etc. I'm not sure if this has anything to do with it or not, but thought I would mention it.
I've totally rebuilt the tree, and the solution file. It seems to be connecting again, with a much smaller solution file.
Thanks for the help on this, but I have a feeling it's not gone yet.
I just tried deleting the database file and rebuilding it, and it deleted ok, which tells me there is actually no locks on the file, yet VS 2005 still hangs trying to connect to the project.
Not all of the clients in out company use SOS to connect to VSS, some use direct VSS, which caused some problems with rebinding/etc. I'm not sure if this has anything to do with it or not, but thought I would mention it.
I've totally rebuilt the tree, and the solution file. It seems to be connecting again, with a much smaller solution file.
Thanks for the help on this, but I have a feeling it's not gone yet.