Microsoft KB Archive/169309: Difference between revisions

From BetaArchive Wiki
m (Text replacement - "<" to "<")
m (Text replacement - ">" to ">")
Line 72: Line 72:
# Create a new standard.exe project in Visual Basic.
# Create a new standard.exe project in Visual Basic.
# Save it locally and add it to Source control.
# Save it locally and add it to Source control.
# Select the Tools Menu &gt; SourceSafe &gt; Options and set &quot;Add files to source control when adding them to a VB project?&quot; to &quot;Ask&quot;.
# Select the Tools Menu > SourceSafe > Options and set &quot;Add files to source control when adding them to a VB project?&quot; to &quot;Ask&quot;.
# Choose Add | Active-X Designer | Microsoft UserConnection.
# Choose Add | Active-X Designer | Microsoft UserConnection.
# Get UserConnection Properties dialog box. Click OK.
# Get UserConnection Properties dialog box. Click OK.
# Save the UserConnection object and answer &quot;Yes&quot; to &quot;Would you like to save <object&gt; to the current source code control project?&quot;
# Save the UserConnection object and answer &quot;Yes&quot; to &quot;Would you like to save <object> to the current source code control project?&quot;


Expected:
Expected:
Line 85: Line 85:
<div class="errormessage">
<div class="errormessage">


&quot;An error occurred while adding an object to a collection in the Microsoft Repository. The relationship name < UserConnectionName&gt; is already used in the collection, and the collection requires all names to be unique. Microsoft Repository for Visual Basic is shutting down.&quot;
&quot;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.&quot;


</div></li></ul>
</div></li></ul>

Revision as of 19:40, 20 July 2020

Knowledge Base


Article ID: 169309

Article Last Modified on 11/18/2003



APPLIES TO

  • 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

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.

Keywords: kbbug kbfix kbvbp500sp2fix kbvs97sp1fix kbvs97sp2fix kbvbp500sp1fix KB169309