Why do i get an error message saying "InheritInChildApplications cannot be set to "false" if the location path is referring to machine.config or the root web.config." while installing EmailEncoder.

The reason for this is that the web.config for the site have one or more location tags with the inheritInChildApplications attribute.

A simple workaround is to set the value to true, install EmailEncoder, and finally reset the value to false again.