Microsoft KB Archive/169309

From BetaArchive Wiki
Knowledge Base

Article ID: 169309

Article Last Modified on 11/18/2003


  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition

This article was previously published under Q169309


Adding Active-X Designer | Microsoft UserConnection results in a shutdown of Repository and illegal operation, and then a shutdown of Visual Basic.


Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been fixed with Visual Studio Service Pack 1.

For additional information about the Visual Studio 97 Service Pack 1, please see the following article in the Microsoft Knowledge Base:

170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why


Steps to Reproduce Problem

  1. Create a new standard.exe project in Visual Basic.
  2. Save it locally and add it to Source control.
  3. Select the Tools Menu > SourceSafe > Options and set "Add files to source control when adding them to a VB project?" to "Ask".
  4. Choose Add | Active-X Designer | Microsoft UserConnection.
  5. Get UserConnection Properties dialog box. Click OK.
  6. Save the UserConnection object and answer "Yes" to "Would you like to save <object> to the current source code control project?"


  • UserConnection object is added to Visual Basic project, Visual SourceSafe project and Repos.


  • Get repos message box:

    "An error occurred while adding an object to a collection in the Microsoft Repository. The relationship name < UserConnectionName> is already used in the collection, and the collection requires all names to be unique. Microsoft Repository for Visual Basic is shutting down."

Click OK and Visual Basic shuts down.

Keywords: kbbug kbfix kbvbp500sp2fix kbvs97sp1fix kbvs97sp2fix kbvbp500sp1fix KB169309