May 17, 2010 at 3:52 AM
Edited May 17, 2010 at 4:59 AM
First,I am chinese,so my english is suck,I guess!I hope I can let you know what's my problem:)
I used the Unity 2.0 IOC container to inject the object to the interface.
I think post some codes is better than say.
<type type="IPeople" mapTo="ChinesePeople" name="ChineseFactory">
<typeConfig extensionType="Microsoft.Practices.Unity.Configuration.TypeInjectionElement, Microsoft.Practices.Unity.Configuration">
<param name="n_weapon" parameterType="IWeapon">
<typeConfig> tag is can not be indentifide by the ASP.NET .But when I used the old Unity IOC container which contain "Microsoft.Practices.Unity" ,Microsoft.Practices.Unity.Configuration" ,and Microsoft.Practices.ObjectBuilder2"
,it can be indentified! why Unity 2.0 without "Microsoft.Practices.ObjectBuilder2" ? and when I put the "Microsoft.Practices.ObjectBuilder2" to the Unity 2.0 is still not working!
I don't want to use the old version !please help!