configurationManager.GetSection("unity") Error

Jan 27, 2012 at 7:45 PM


When i try to get the unity section from the default web.config it throws an error :

An Abstract object InjectionMemberElement cannot be created. Please specify a concrete type.

But everything works fine if try to get the config section from a separate config file on disk !

Any clues on how to solve this issue ?




Jan 29, 2012 at 2:10 AM

The error occurs when deserializing the configuration section.  Can you post the configuration and 2 code snippets (one fetching from the web.config and one reading from file on disk)?

That would help in tracking down the issue.

Randy Levy
Enterprise Library support engineer