Microsoft KB Archive/193091

= FIX: VSS OLE Automation Error Message "Bad Access Parameter" =

Article ID: 193091

Article Last Modified on 10/15/2002

-

APPLIES TO


 * Microsoft Visual SourceSafe 5.0 Standard Edition

-



This article was previously published under Q193091



SYMPTOMS
When you log onto Visual SourceSafe using OLE Automation objects, you might get the following error message:

Run time Error '-2147352566(8002000a)':

Invalid access code(bad parameter).



CAUSE
When you log onto Visual SourceSafe using the VSSDatabase.Open method, you used a password with eight or more characters.



RESOLUTION
To work around this problem, use a password that is less than eight characters.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual SourceSafe 6.0



MORE INFORMATION
You can use a password containing up to 15 characters Visual SourceSafe. However, when you log onto Visual SourceSafe using OLE automation objects, you will receive the error message listed above if the password is eight or more characters. For the following steps to work correctly, you must have SourceSafe/Client server installed under the C:\Vss directory.

Steps to Reproduce Behavior
 Run SSAdmin.exe from the Win32 directory under your Visual SourceSafe installation directory. From the Users menu, select Add User. In the User name text box, type the following:

User1

 In the Password text box, type the following:

password

 Click OK.</li> Close SSAdmin.exe.</li> Open Visual Basic.</li> Create a New Standard EXE project.</li> Add a reference to the Microsoft SourceSafe 5.0 Type Library2.</li> Place a Command button on the form Form1, Command1.</li>  Copy the following lines of code into the Command1_Clickprocedure: Dim VSSData1 as New VSSDatabase VSSData1.Open "C:\vss\srcsafe.ini", "User1", "password" </li> Execute the project.</li> Click the command button, Command1.</li></ol>

RESULT: The following error message appears:

Run time Error '-2147352566(8002000a)': Invalid access code(bad parameter).

Keywords: kbbug kbfix kbssafe600fix kbautomation KB193091

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.