FIX: Error message when you deploy a database project that contains duplicate references to the same .dbschema file in Visual Studio Team System 2008 Database Edition GDR: "System.ArgumentException: An item with the same key has already been added"

Article translations Article translations
Article ID: 970561 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

You have a Microsoft SQL Server database project that contains duplicate references to the same .dbschema file in Microsoft Visual Studio Team System 2008 Database Edition GDR. The references to this .dbschema file have the same names and different paths. However, when you deploy the project to a database, the deploy task fails and you receive the following error message:
System.ArgumentException: An item with the same key has already been added.

Note This problem occurs when you move the database project to a different directory or change the configuration of the database project after you add a database reference to the .dbshema file.

RESOLUTION

To resolve this problem, upgrade to Microsoft Visual Studio Team System 2008 Database Edition GDR R2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
970479 List of fixed issues in the Microsoft Visual Studio Team System 2008 Database Edition GDR R2

Note Microsoft Visual Studio Team System 2008 Database Edition GDR R2 replaces Microsoft Visual Studio Team System 2008 Database Edition GDR.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 970561 - Last Review: July 16, 2009 - Revision: 1.0
APPLIES TO
  • Microsoft Visual Studio Team System 2008 Database Edition
Keywords: 
kbexpertiseadvanced kbprb kbsurveynew kbqfe KB970561

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com