Re: unable to run vss.open()



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 -

.



Relevant Pages

  • Re: unable to run vss.open()
    ... I am using VSS interop here with no problems at all. ... Vss will close the connection by iteself. ... Perhaps you are specifying the wrong sourcesafe database ini? ...
    (microsoft.public.dotnet.general)
  • Re: VSS 2K5 Internet plugin
    ... LAN connection to connect via a UNC path as well. ... That was the whole point of having the VSS Internet plugin. ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: Vss DB damage during Analyze -> Elipse
    ... > connected to VSS before running Analyze? ... We use Elipse as IDE. ... but it does not check for connection with other ...
    (microsoft.public.vstudio.sourcesafe)
  • Re: How to bypass lockout on Pioneer nav systems
    ... > both units seem to function great without the VSS connection. ... as the Parking Brake wire grounded all the time and the Speed Sensor ... - Wired up two relays and resting at closed it will: ...
    (rec.audio.car)
  • Re: VSS 6 and VB 6 integration problem
    ... programming for Windows CE devices (Pocket PC, SmartPhone, etc.), not for ... I've looked all through the VB 6 and VSS drop-down menus ... am unable to locate how to re-establish a connection to VSS. ...
    (microsoft.public.windowsce.embedded.vb)