Issues with changed PublicKeyToken value in v4.x

There is a problem with Unity 4.x versions. Here are steps to reproduce it: 1 . Create "Windows -> Classic Desktop -> WPF Application" project in Visual Studio. 2 . Add "Prism.Unity" v6.0.1 NuGe...

Id #12782 | Release: None | Updated: Oct 12, 2015 at 11:30 PM by Robot1que | Created: Oct 12, 2015 at 11:30 PM by Robot1que

Issue in Registering types using Microsoft.Unity 2.0

Hi, We are using Unity2.0 with asp.net 4.5 framework. We have used custom http module and registering types in every application start event. Lifetimemanager is extended to use HttpContext.Cur...

Id #12781 | Release: None | Updated: Aug 26, 2015 at 1:59 PM by ashwinee_VENGURLE | Created: Aug 26, 2015 at 1:59 PM by ashwinee_VENGURLE

System.MethodAccessException when trying to instantiate new UnityContainer

code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.Practices.Unity; namespace ConsoleApplication3 { class Pr...

Id #12780 | Release: None | Updated: Oct 15, 2015 at 3:50 PM by fcarlier | Created: Aug 5, 2015 at 9:11 AM by Chris97

Unity Missing Dependency on nuget package

Hello Guys, When I'm starting my project (based on Project Orleans), it comes out that a weird warning is thrown by a missing reference: [2015-07-26 20:03:06.970 GMT 6 INFO 100000 Assemb...

Id #12779 | Release: None | Updated: Jul 26, 2015 at 9:25 PM by ironmala | Created: Jul 26, 2015 at 9:25 PM by ironmala

PerRequestLiftetimeManager doesn't work when using RenderAction

Registering something with the PerRequestLifetimeManager doesn't work if you call RenderAction on a controller. I have a repository using DB context which is setup using a PerRequestLifetimeManag...

Id #12778 | Release: None | Updated: Jul 8, 2015 at 10:07 AM by nathandickinson | Created: Jul 8, 2015 at 10:07 AM by nathandickinson

RegisterType does not behave as expected when called twice

It appears that if you use RegisterType<TTo, TTFrom> to register a mapping with Injected Property parameters and then call it again without, the previous BuildPlan is not cleared. The issue in m...

Id #12777 | Release: None | Updated: Jun 10, 2015 at 9:04 AM by dot_NET_Junkie | Created: Jun 3, 2015 at 10:59 PM by dellycowboy

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: May 22, 2015 at 2:47 PM by MarsRoverII | Created: May 22, 2015 at 2: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, 2015 at 12:06 PM by jovicam | Created: Apr 28, 2015 at 12:05 PM 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, 2015 at 6:10 PM by scottstubbs | Created: Mar 5, 2015 at 6: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, 2015 at 1:51 PM by tommed | Created: Feb 7, 2015 at 1:40 PM by tommed