DB2 - Problembeschreibung
Problem IC78314 | Status: Geschlossen |
DB2NMPCFG CAN CREATE DUPLICATE ENTRIES WITH SAME INVARIANT NAME IN DBPROVIDERFACTORIES SECTION OF MACHINE.CONFIG | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
db2nmpcfg.exe fails to remove entries with the same invariant name as the ones being added if the assembly version is different. This results in an invalid machine.config since the invariant name must be unique. db2nmpcfg.exe should remove all DbProviderFactories entries with the same invariant regardless of other attribute values. An exception similar to the following is encountered when using DbProviderFactories with a mis-configured machine.config file: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.data: Column 'InvariantName' is constrained to be unique. Value 'IBM.Data.DB2' is already present. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.co nfig line 537) ---> System.Data.ConstraintException: Column 'InvariantName' is constrained to be unique. Value 'IBM.Data.DB2' is already present. at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action) at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent) at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException) at System.Data.DataTable.InsertRow(DataRow row, Int32 proposedID, Int32 pos,Boolean fireEvent) at System.Data.Common.DbProviderFactoriesConfigurationHandler.DbPro viderDictionarySectionHandler.HandleAdd(XmlNode child, DataTable config) at System.Data.Common.DbProviderFactoriesConfigurationHandler.DbPro viderDictionarySectionHandler.CreateStatic(DataTable config, Object context, XmlNode section) ... | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * .NET applications on all supported versions of Microsoft * * Windows Operating System * **************************************************************** * PROBLEM DESCRIPTION: * * db2nmpcfg.exe fails to remove entries with the same * * invariant name as the ones being added if the assembly * * version is different. This results in an invalid * * machine.config since the invariant name must be unique. * * db2nmpcfg.exe should remove all DbProviderFactories entries * * with the same invariant regardless of other attribute * * values. * * * * * * An exception similar to the following is encountered when * * using DbProviderFactories with a mis-configured * * machine.config file: * * * * * * System.Configuration.ConfigurationErrorsException: * * An error occurred creating the configuration section handler * * for system.data: Column 'InvariantName' is constrained to be * * unique. Value 'IBM.Data.DB2' is already present. * * (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machin * * e.config line 537) ---> System.Data.ConstraintException: * * Column 'InvariantName' is constrained to be unique. Value * * 'IBM.Data.DB2' is already present. * * * * at System.Data.UniqueConstraint.CheckConstraint(DataRow * * row, DataRowAction action) * * * * at * * System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArg * * s args, DataRow eRow, DataRowAction eAction, Boolean * * fireEvent) * * at System.Data.DataTable.SetNewRecordWorker(DataRow row, * * Int32 proposedRecord, DataRowAction action, Boolean * * isInMerge, Int32 position, Boolean fireEvent, Exception& * * deferredException) * * at System.Data.DataTable.InsertRow(DataRow row, Int32 * * proposedID, Int32 pos,Boolean fireEvent) * * * * at * * System.Data.Common.DbProviderFactoriesConfigurationHandler.D * * bProviderDictionarySectionHandler.HandleAdd(XmlNode child, * * DataTable config) * * at * * System.Data.Common.DbProviderFactoriesConfigurationHandler.D * * bProviderDictionarySectionHandler.CreateStatic(DataTable * * config, Object context, XmlNode section) * * * * ... * **************************************************************** * RECOMMENDATION: * * Upgrade to Version 9.7 Fix Pack 5 or later. * **************************************************************** | |
Local-Fix: | |
Remove entries with duplicate invariant names from the <DbProviderFactories> section of the affected machine.config file. | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
Lösung | |
Problem was first fixed in Version 9.7 Fix Pack 5. This fix should be applied on the client. | |
Workaround | |
see LOCAL FIX. | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 24.08.2011 19.12.2011 19.12.2011 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP5 | |
Problem behoben lt. FixList in der Version | |
9.7.0.5 |