473,473 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

unable to run vss.open()

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,

Jan 29 '07 #1
7 4341
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?

<st*********@gmail.comwrote in message
news:11**********************@l53g2000cwa.googlegr oups.com...
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,

Jan 29 '07 #2
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...@hotmail.comwrote:
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...@gmail.comwrote in messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -
Jan 29 '07 #3
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...@gmail.com 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...@hotmail.comwrote:
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...@gmail.comwrote in messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -
Jan 29 '07 #4
This seems to work for me

Dim objSS As SourceSafeTypeLib.IVSSDatabase
Try
objSS = New SourceSafeTypeLib.VSSDatabaseClass
objSS.Open("\\myserver\mysourcesafeshare\srcsafe.i ni", "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.

<st*********@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
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...@gmail.com 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...@hotmail.comwrote:
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...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -

Jan 29 '07 #5
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...@hotmail.comwrote:
This seems to work for me

Dim objSS As SourceSafeTypeLib.IVSSDatabase

Try
objSS = New SourceSafeTypeLib.VSSDatabaseClass
objSS.Open("\\myserver\mysourcesafeshare\srcsafe.i ni", "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...@gmail.comwrote in messagenews:11**********************@a34g2000cwb.g ooglegroups.com...
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...@gmail.com 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...@hotmail.comwrote:
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...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -
Jan 29 '07 #6
stan,

I am using VSS interop here with no problems at all. My main class looks
like this:

VSSDatabaseClass VSSdb = new VSSDatabaseClass();
VSSdb.Open(_VSSFolder, _Username, _Password);
VSSItem vssProj = VSSdb.get_VSSItem("$/", false);
IVSSItems items = vssProj.get_Items(false);

My _VSSfolder variable points to the srcsafe.ini path, for example:
"C:\\MySS\srcsafe.ini"

Try remove and add the interop dll from your application.

Make sure your application has access to this folder.
--
Regards,
Robson Siqueira
Enterprise Architect
<st*********@gmail.comwrote in message
news:11**********************@s48g2000cws.googlegr oups.com...
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...@hotmail.comwrote:
>This seems to work for me

Dim objSS As SourceSafeTypeLib.IVSSDatabase

Try
objSS = New SourceSafeTypeLib.VSSDatabaseClass
objSS.Open("\\myserver\mysourcesafeshare\srcsafe.i ni",
"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...@gmail.comwrote in
messagenews:11**********************@a34g2000cwb. googlegroups.com...
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...@gmail.com 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...@hotmail.comwrote:
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...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -

Jan 29 '07 #7

Thanks for your help and your script example.

I was actually doing the same thing..
I found the answer but I am not sure what it means:

I went to Visual source safe administarator and Edit my user account :
I checked "Read only" and it works fine..

Does anyone know why it works like this? what does read only means?
would I be able to checkin/checkout the files?

Thank you,
On Jan 29, 12:50 pm, "Robson Siqueira" <rob...@robsonfelix.comwrote:
stan,

I am using VSS interop here with no problems at all. My main class looks
like this:

VSSDatabaseClass VSSdb = new VSSDatabaseClass();
VSSdb.Open(_VSSFolder, _Username, _Password);
VSSItem vssProj = VSSdb.get_VSSItem("$/", false);
IVSSItems items = vssProj.get_Items(false);

My _VSSfolder variable points to the srcsafe.ini path, for example:
"C:\\MySS\srcsafe.ini"

Try remove and add the interop dll from your application.

Make sure your application has access to this folder.
--
Regards,
Robson Siqueira
Enterprise Architect<stan.kol...@gmail.comwrote in messagenews:11**********************@s48g2000cws.g ooglegroups.com...
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...@hotmail.comwrote:
This seems to work for me
Dim objSS As SourceSafeTypeLib.IVSSDatabase
Try
objSS = New SourceSafeTypeLib.VSSDatabaseClass
objSS.Open("\\myserver\mysourcesafeshare\srcsafe.i ni",
"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...@gmail.comwrote in
messagenews:11**********************@a34g2000cwb.g ooglegroups.com...
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...@gmail.com 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...@hotmail.comwrote:
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...@gmail.comwrote in
messagenews:11**********************@l53g2000cwa.g ooglegroups.com...
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 -- Hide quoted text -- Show quoted text -
Jan 29 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: soup_or_power | last post by:
The pop up window has several checkboxes. I'm unable to access the checkboxes using the handle from window.open. Any way to do this? var display; function showSugg(but_id, sugg1, sugg2, sugg3,...
3
by: David N | last post by:
I got a solution that contains about 30 projects, three of which cannot be open. When I open the project, I always receive the error message "Unable to get the project file from the Web Server" ...
0
by: richard | last post by:
Hi, I have installed one of the Asp.Net starter kits from www.asp.net The installation has been successful and the web site works on my local machine. However, when I try to open the solution...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
8
by: Rob | last post by:
I asked this question before but having had no response i'll try to simplify the description and hope someone can help this time. Basically my problem is that i'm getting the error "Unable to...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
7
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the...
0
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: geetu | last post by:
hi to all.. pls help me its urgent.. i m unable to understand the exact answer .. tell me step to be carried to set libraries or directory path so that i can execute a simple program everytime i...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.