Getting an exception with VS 2005

Topics: Updater Application Block
Aug 11, 2005 at 11:25 AM
originally posted by: lottoman2000

I tried the exact same code in VS 2003 which worked fine. I even tried converting a VS2003 to VS 2005 while commenting everything related to the UAB. Then uncommenting the UAB code after conversion. But still getting the same exception. Any help is really appreciated. The following is the exception message I am getting:

System.InvalidOperationException: There is an error in XML document (18, 49). ---> System.InvalidOperationException: The specified type is abstract: name='KeyAlgorithmPairStorageProviderData', namespace='http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration', at (unknown).

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderConfigurationSettings.Read17_Item(Boolean isNullable, Boolean checkType)

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderConfigurationSettings.Read18_ConfigurationSettings(Boolean isNullable, Boolean checkType)

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderConfigurationSettings.Read19_Item()

--- End of inner exception stack trace ---

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)

at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManagerSectionHandler.Create(Object parent, Object configContext, XmlNode section) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationManagerSectionHandler.cs:line 60

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.EvaluateRecursive(IConfigurationSectionHandler sectionHandler, Object config, String[] keys, Int32 keyIndex, XmlTextReader reader) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationFile.cs:line 436
Aug 11, 2005 at 11:26 AM
originally posted by: lottoman2000

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.Evaluate(String configKey) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationFile.cs:line 339

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.ResolveConfig(String configKey) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationFile.cs:line 234

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationFile.GetConfig(String configKey) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationFile.cs:line 216

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.ReadMetaConfiguration() in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationBuilder.cs:line 332

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder.LoadMetaConfiguration(String configurationFile) in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationBuilder.cs:line 579

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationBuilder..ctor() in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationBuilder.cs:line 105

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager..ctor() in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationManager.cs:line 39

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.get_Current() in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationManager.cs:line 88

at Microsoft.Practices.EnterpriseLibrary.Configuration.ConfigurationManager.GetCurrentContext() in C:\Program Files\Microsoft Enterprise Library\src\configuration\ConfigurationManager.cs:line 143

at Microsoft.ApplicationBlocks.Updater.Configuration.UpdaterConfigurationView..ctor() in C:\Program Files\Microsoft Patterns & Practices\Updater Application Block 2.0\src\cs\Updater\Configuration\UpdaterConfigurationView.cs:line 34

at Microsoft.ApplicationBlocks.Updater.ApplicationUpdaterManager.GetUpdater() in C:\Program Files\Microsoft Patterns & Practices\Updater Application Block 2.0\src\cs\Updater\ApplicationUpdaterManager.cs:line 229

at UABScenario2.frmSplash.CheckAndUpdate()