FIX: Adding ActiveX Designer/Userconnection Results in Shutdown (169309)



The information in this article applies to:

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

This article was previously published under Q169309

SYMPTOMS

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

STATUS

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

MORE INFORMATION

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?"
Expected:
  • UserConnection object is added to Visual Basic project, Visual SourceSafe project and Repos.
Results:
  • 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.

Modification Type:MajorLast Reviewed:11/18/2003
Keywords:kbbug kbfix kbvbp500sp1fix kbvbp500sp2fix kbVS97sp1fix kbVS97sp2fix KB169309