I got a question on encrypting Enterprise Library sections in the application configuration file. I must admit this was somewhat tricky, so here is some additional information on this topic. To encrypt an Enterprise Library (EL) section, you must copy the EL section handler assemblies to the system directory. To do this, go to the File System Editor in the Setup project and click on the System Folder; then, include EL section handlers. For example, to encrypt the section, you must include Microsoft.Practices.EnterpriseLibrary.Common.dll and Microsoft.Practices.EnterpriseLibrary.Security.dll in the System Folder of the Setup project. The reason for this is the msiexec.exe is installed in the system folder (usually C:\Windows\System32) and it looks for dependent assemblies in there. Here is a screenshot of what this looks like in the setup project:
The config file, once encrypted, will look like this:
Hopefully this post addresses the areas that might have been ambiguous in my previous posts.