Application is not accessible and geting error

One application get shutdown showing error message like "The resource is not available" and Application Pool need to restart. It uses Unity Framework for IoC. Below is the Server log: Exception...

Id #12776 | Release: None | Updated: Fri at 1:47 PM by MarsRoverII | Created: Fri at 1:47 PM by MarsRoverII

Unity v3 - RegistrationByConvention - Could not load type exception

I am using Enterprise Library 6 and Unity v.3.5.0.0 The following error occurs: Could not load type 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Manageability.ConfigurationSection...

Id #12775 | Release: None | Updated: Apr 28 at 11:06 AM by jovicam | Created: Apr 28 at 11:05 AM by jovicam

RegisterInstance fails when object is RealProxy

Attempting to register an object created with RealProxy.GetTransparentProxy() method: var fooProxy = new FooProxy(); // class FooProxy : RealProxy var foo = (IFoo)fooProxy.GetTransparentProxy(); c...

Id #12774 | Release: None | Updated: Mar 5 at 5:10 PM by scottstubbs | Created: Mar 5 at 5:10 PM by scottstubbs

Making configuration easier to follow

Firstly let me explain how much I LOVE Unity. It is by far my favourite (sorry, UK spelling!) dependency injection library - even outside of .NET. I personally find that explicitly defining my DI...

Id #12773 | Release: None | Updated: Feb 7 at 12:51 PM by tommed | Created: Feb 7 at 12:40 PM by tommed

Allow interface interception with no target instance

It would be very useful to provide a dynamic implementation of the interface at runtime. A common scenario it would enable is automatic typed factories. Consider the class and interface below: p...

Id #12772 | Release: None | Updated: Jan 31 at 1:38 PM by tom103 | Created: Jan 31 at 1:38 PM by tom103

Design time configuration and multiple types in one file

It appears that when make use of Design time configuration with Unity, it does not like if the type you are mapping to exists in a file with other types. In my case I have an interface that inherit...

Id #12771 | Release: None | Updated: Dec 24, 2014 at 12:28 PM by arifkh | Created: Dec 23, 2014 at 10:01 PM by arifkh

Issue when trying to resolve a generic interface expecting an interface not concrete implementation - IInterface<IAnotherInterface>

As part of the example code for MediatR on GitHub there are a number of implementations for different IoC containers. The example sets up a number of Notification handlers which the mediator publ...

Id #12770 | Release: None | Updated: Dec 16, 2014 at 6:06 PM by randylevy | Created: Dec 16, 2014 at 2:53 PM by WestDiscGolf

Implement IServiceProvider

Please implement the System.IServiceProvider interface. It's a no-brainer and not a breaking change of any kind. Will help integrate the Dependency inversion principle into 3rd party applications...

Id #12769 | Release: None | Updated: Nov 1, 2014 at 2:59 PM by abatishchev | Created: Nov 1, 2014 at 6:15 AM by abatishchev

Exception retrieving registration for open generic type registration mapped to type with generic restriction

Reproducible with the following example: using System; using Microsoft.Practices.Unity; interface IBar { } interface IFoo<TBar> { } class Foo<TBar> : IFoo<TBar> where TBar : IBar { } class Pro...

Id #12768 | Release: None | Updated: Oct 29, 2014 at 6:30 PM by randylevy | Created: Oct 29, 2014 at 5:29 PM by OliverHallam

UnityExtensions references ServiceLocation 1.2.0.0, bindingRedirect doesn't help

After doing an update of all NuGet packages, one of my applications began crashing on start-up with a FileLoadException: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Versio...

Id #12767 | Release: None | Updated: Apr 9 at 2:02 AM by Eason | Created: Oct 20, 2014 at 10:29 PM by CharlieHess