typeConfig config Error

Apr 28, 2008 at 9:15 PM
I have specified typeAlias as follows.

<typeAlias alias="injection" type="Microsoft.Practices.Unity.Configuration.TypeInjectionElement,
Microsoft.Practices.Unity.Configuration" />

then I use this alias as below.

<type type="GalaxyNameService" mapTo="GalaxyNameService">
<lifetime type="singleton" />
<typeConfig name="injection" extensionType = "injection" >
<param name="gxyConfig" parameterType="gxyConfig">
<dependency />
<param name="nsConfig" parameterType="nsConfig">
<dependency />

It cannot instantiate extenstionType . Unity is not trying to resolve using typeAlias.
Apr 28, 2008 at 10:35 PM
Yes, this is a known deficiency of the System.Configuration APIs. When you're telling Unity about a type, you can use a type alias. But when you're telling the configuration system about the type of a configuration element, you need to use the full type name, you can't use an alias.

We hope to have a solution to this, but it probably won't be soon.
Apr 29, 2008 at 12:50 AM