Discussions under General

Loading Classes in Unity

first post: Arjun1985 wrote: Hi, I wanted to have opinions about a confusion I have: I have...

latest post: randylevy wrote: I agree with @dot_NET_Junkie; Unity does not explicitly load assemb...

IOC Container dependency failure

first post: JMarano wrote: Hey everyone. I'm getting an error while using Gallio to debug a un...

latest post: randylevy wrote: The error message is telling you that ILoggingService is not regist...

answered by: randylevy wrote: The error message is telling you that ILoggingService is not regist...

Cant setup test container registration with a string name param

first post: milsnips wrote: hi, my actual code looks something like this: _container.Resol...

latest post: randylevy wrote: OK, constructor injection sounds like a better approach. :)

answered by: milsnips wrote: **randylevy wrote:** > It looks like the issue is that in your test...

Unity Error: An abstract InjectionMemberElement object cannot be created

first post: chrisUD wrote: Hi all, I have recently inherited an ASP.Net project where Unity is...

latest post: avinashlanka wrote: Thanks virat. You saved me.

Unity upgrade from 3.0 to 3.5 throwing a "System.Runtime is not referenced"

first post: RicardoGuerra wrote: Hi there, We've migrated Unity from 3.0.1304.1 to 3.5.1404.0 via ...

latest post: xinqiu wrote: For our project build system, all we need to do is to add to ...

Unity cannot find named component when assembly is built with optimize setting

first post: BenCrinion wrote: I've asked this same question on Stack Overflow but thought I'd try...

latest post: BenCrinion wrote: Well I feel silly, I never actually checked the exception before, I...

answered by: BenCrinion wrote: Well I feel silly, I never actually checked the exception before, I...

IoC: Constructors with two parameters of the same type

first post: GrahamAtSDA wrote: Hi, When using Unity for IOC, I am relying on Constructor Inject...

latest post: GrahamAtSDA wrote: Perfect! Thanks Randy.

answered by: randylevy wrote: > Do I have to define two new interfaces for Class1 and Class2 so t...

Disable Auto Registration

first post: martin_weber wrote: Hi, Is it possible to disable autoregistration in Unity 3.5? How ...

latest post: martin_weber wrote: Thank you so much Randy. Yes, this is exactly what I want to do.

answered by: randylevy wrote: I assume you are not discussing auto-registration in the sense of r...

Unity - Prism IoC problem

first post: kermitfrosch wrote: Hallo, i am trying to modular applications with prism & unity. i ...

latest post: kermitfrosch wrote: Thanks, this works for me. Jens

answered by: randylevy wrote: The root problem is that there is a MissingMethodException: "No par...

ResolutionFailedException: The current type is an interface and cannot be constructed.

first post: Mythreyi wrote: Hi, I have started using Unity only over the past week. Please help...

latest post: bankeysharma wrote: I had similar issue which solved after adding an alias to concrete ...