Re: VB.Net and SourceSafeTypeLib
- From: "NewsReader" <NewsReader@xxxxxxxxxxxxxx>
- Date: Thu, 10 Nov 2005 16:11:14 -0600
What happens when you change this line in your VB .NET code
from: strINI = "X:\\VSSZynxDirectory\\srcsafe.ini"
to: strINI = "X:\VSSZynxDirectory\srcsafe.ini"
"tony webster" <tony webster@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4CA926F4-DD9F-484D-8257-E6D672339BFC@xxxxxxxxxxxxxxxx
>I have downloaded the IVSSLibrary solution from Microsoft. The project that
> actually interacts with the VSS Interop is a C# project, and it has no
> problem opening the VSSDB located on another box.
>
> When I try to run a VB version of the code, I get the following error:
>
> System.Runtime.InteropServices.COMException: The SourceSafe database path
> 'SomeUserName' does not exist. Please select another database.
>
> I am running VS 2003 and VSS 6.0.
>
> C# code:
>
> public string OpenDB(string UserName, string PassWord, string Path)
> {
> VSS_Database = new SourceSafeTypeLib.VSSDatabase();
>
> try
> {
> VSS_Database.Open (Path, UserName, PassWord);
> CurrentPassword = PassWord;
> OpenMethodCount = OpenMethodCount + 1;
> }
> catch(Exception e)
> {
> return e.ToString();
> }
>
> return "";
>
> }
>
>
> VB.Net Code:
>
> Dim objVSSDB As New SourceSafeTypeLib.VSSDatabase
> Dim strUID, strUPW, strINI As String
>
> strINI = "X:\\VSSZynxDirectory\\srcsafe.ini"
> strUID = vssaUIDTxt.Text
> strUPW = vssaUPWTxt.Text
>
> objVSSDB.Open(strINI, strUID, strUPW)
>
> The VB parameter values are exactly equal to the C# values EXCEPT that the
> value of the C# DBPath = @"X:\\VSSZynxDirectory\\srcsafe.ini". The @ is
> added
> by the program.
>
> Otherwise, everthing else is the same, and the VB reference is correct as
> I
> get intellisense for the VSS objects.
>
> Why won't the VB code open the VSS database?
>
> Thanks
>
> Tony
>
>
>
>
>
>
.
- Prev by Date: Copy a project
- Next by Date: Re: Setup of Visual SourceSafe 2005 final version fails
- Previous by thread: Re: VB.Net and SourceSafeTypeLib
- Next by thread: Copy a project
- Index(es):
Relevant Pages
|