Re: unable to run vss.open()
- From: stan.kolker@xxxxxxxxx
- Date: 29 Jan 2007 09:29:35 -0800
Hi AMDRIT,
Vss will close the connection by iteself.
Do you think maybe the problem that I am running VS.NET 2003 with VSS
2005. Maybe this is why it is not working?
Thanks,
On Jan 29, 12:23 pm, "AMDRIT" <amd...@xxxxxxxxxxx> wrote:
This seems to work for me
Dim objSS As SourceSafeTypeLib.IVSSDatabase
Try
objSS = New SourceSafeTypeLib.VSSDatabaseClass
objSS.Open("\\myserver\mysourcesafeshare\srcsafe.ini", "myusername",
"")
For Each item As SourceSafeTypeLib.VSSItem In
objSS.VSSItem(0).Items(False)
Debug.Print(item.Name)
Next
Catch ex As Exception
Debug.Print(ex.ToString)
End Try
Perhaps you are specifying the wrong sourcesafe database ini? Of course, I
had to actually code this to test it, there didn't seem to be a way to close
the connection, is there a way to close the connection or have I just hosed
my sourcesafe database. I have backups so i am not worried too much.
<stan.kol...@xxxxxxxxx> wrote in messagenews:1170089871.527118.245940@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
it finds the right user, because when I try to access with a different
user that does not exists in VSS. it gives an error :"user not found "
On Jan 29, 11:44 am, stan.kol...@xxxxxxxxx wrote:
I added a new user with a password. and it still goes to that
directory instead of where I am trying pointing to. :(
any other ideas?
On Jan 29, 10:53 am, "AMDRIT" <amd...@xxxxxxxxxxx> wrote:
The srcsafe.ini file specifies where the database lives, and it appears
that
it was pointing to the rights.dat file. This could also be that you
are not
suppling a password for the user admin. Perhaps there is a password
for
that database, or admin is not a valid user for that database?
<stan.kol...@xxxxxxxxx> wrote in
messagenews:1170085012.798949.234370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HI,
I am just trying to open vss:
try
SourceSafeTypeLib.IVSSDatabase vssDb = new VSSDatabaseClass();
vssDb.Open(@"C:\Program Files\Microsoft Visual
Studio\Common\VSS\srcsafe.ini","admin","");
catch()
//returns
Access to file "C:\Program Files\Microsoft Visual
Studio\Common\VSS\data\rights.dat" denied
how does it get that path? if I am trying to access a diffrent path..
Thank you,- Hide quoted text -- Show quoted text -- Hide quoted
text -- Show quoted text -- Hide quoted text -- Show quoted text -
.
- Follow-Ups:
- Re: unable to run vss.open()
- From: Robson Siqueira
- Re: unable to run vss.open()
- References:
- unable to run vss.open()
- From: stan . kolker
- Re: unable to run vss.open()
- From: AMDRIT
- Re: unable to run vss.open()
- From: stan . kolker
- Re: unable to run vss.open()
- From: stan . kolker
- Re: unable to run vss.open()
- From: AMDRIT
- unable to run vss.open()
- Prev by Date: Re: unable to run vss.open()
- Next by Date: Re: unable to run vss.open()
- Previous by thread: Re: unable to run vss.open()
- Next by thread: Re: unable to run vss.open()
- Index(es):
Relevant Pages
|