You are currently offline, waiting for your internet to reconnect

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"

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: 07/16/2009 08:14:14 - Revision: 1.0

Microsoft Visual Studio Team System 2008 Database Edition

  • kbexpertiseadvanced kbprb kbsurveynew kbqfe KB970561
Feedback
om/c.gif?DI=4050&did=1&t=">