How to fix problems with importing CodeTwo Exchange Rules settings
Problem:
You are not able to import a settings file you previously exported from the program, due to the following (or similar) error:
Failed to import settings. Element 'http://www.codetwo.com:SecuritySettings' contains data from a type that maps to the name 'http://www.codetwo.com:SecuritySettingsEx'. The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver or add the type corresponding to 'SecuritySettingsEx' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to DataContractSerializer.
Solution:
The configuration of the program is exported to a single XML file which contains all of your rules, Sent Items Update settings, Access Rights definitions and more. Whenever new features are implemented it may happen that the structure of this configuration file is changed. This is what happened, for example, with the release of CodeTwo Exchange Rules Pro version 2.6 (and the corresponding Exchange Rules Family products) which introduced improved Access Rights. Any settings exported from version 2.6 can be imported only to another instance of the program in the same version (2.6) or newer. When attempting to import a configuration file from version 2.6 to, for example, version 2.5, you will see the error in question.
There is no other solution to this problem than to make sure the version of the software you are importing your settings to is the same or newer than the software version you are exporting from. Therefore, to resolve the issue you should update your installation and try to import the configuration file again. You can use the Check for updates feature, available under the Help button in all CodeTwo Exchange Rules software products to make sure your installation is up to date.
![]()
Fig. 2. Checking for updates in an outdated version of Exchange Rules Pro 2.
| Related products: | CodeTwo Exchange Rules 2007 4.x, CodeTwo Exchange Rules 2010 3.x, CodeTwo Exchange Rules 2013 2.x, CodeTwo Exchange Rules 2016 1.x, CodeTwo Exchange Rules 2019 1.x, CodeTwo Exchange Rules Pro 2.x |
| Categories: | How-To, Troubleshooting |
| Last modified: | January 31, 2019 |
| Created: | June 17, 2016 |
| ID: | 561 |



