Case: Azure webapp. Solution with multiple projects that uses unity.
Working fine on localhost but not when published, getting the message:
“An error occurred creating the configuration section handler for unity: An abstract InjectionMemberElement object cannot be created. Please specify a concrete type.”
Unity is defined in the web.config as:
<section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration" />
Isolved it by renaming the unity tags to “unityX” so I suspect that the IIS already has loaded unity from another referenced project in the solution.
After the renaming it doesn’t work locally cause it then can’t find and load unity. But that’s another issue…