<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>patterns &amp; practices - Unity</title><link>http://unity.codeplex.com/Project/ProjectRss.aspx</link><description>The Unity Application Block &amp;#40;Unity&amp;#41; is a lightweight extensible dependency injection container with support for constructor, property, and method call injection.      Unity addresses the issues faced b...</description><item><title>New Post: Per Call Resolve by new() LifetimeManager </title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61200</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks Sarah for the quick and astonishing answer! Less is More.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Greetings&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;&lt;/div&gt;</description><author>peterkae</author><pubDate>Thu, 02 Jul 2009 06:03:20 GMT</pubDate><guid isPermaLink="false">New Post: Per Call Resolve by new() LifetimeManager  20090702060320A</guid></item><item><title>New Post: Interception is changing stack traces</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61244</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the implementation class that I&amp;rsquo;m wrapping in an interceptor (InterfaceInterceptor) throws an exception, then my unit test prints an exception that has a stack trace rooted in the dynamically generated wrapper class rather than the actual stack trace. I found that if I wrap the exception in another exception in my call handler, then I am able to see the correct stack trace. Is this a known issue? Something I&amp;rsquo;m doing wrong? I&amp;rsquo;m new to this stuff.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style="white-space:pre"&gt;&lt;span style="color:Blue"&gt;public&lt;/span&gt; IMethodReturn Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var result = getNext()(input, getNext);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var exception = result.Exception;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:Blue"&gt;if&lt;/span&gt; (exception != &lt;span style="color:Blue"&gt;null&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:Green"&gt;//Wrap the exception so the stack trace is preserved&lt;/span&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;result.Exception = &lt;span style="color:Blue"&gt;new&lt;/span&gt; Exception(exception.Message, exception);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:Blue"&gt;return&lt;/span&gt; result;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>jon918</author><pubDate>Wed, 01 Jul 2009 20:40:13 GMT</pubDate><guid isPermaLink="false">New Post: Interception is changing stack traces 20090701084013P</guid></item><item><title>New Post: Per Call Resolve by new() LifetimeManager </title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61200</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;By default, Unity creates a new instance everytime the Resolve method is called so the key is, do not specify a lifetime manager.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;em&gt;&lt;span style="font-size:10pt;color:black;font-family:'Segoe UI','sans-serif'"&gt;Sarah Urmeneta&lt;br&gt;&lt;/span&gt;&lt;/em&gt;&lt;/strong&gt;&lt;span style="font-size:10pt;color:black;font-family:'Segoe UI','sans-serif'"&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;&lt;span style="color:#3e62a6"&gt;&lt;span style="color:#3e62a6"&gt;entlib.support@avanade.com&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Wed, 01 Jul 2009 13:54:55 GMT</pubDate><guid isPermaLink="false">New Post: Per Call Resolve by new() LifetimeManager  20090701015455P</guid></item><item><title>New Post: Per Call Resolve by new() LifetimeManager </title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61200</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I just realized that a call to Resolve for a Registred Type using the&amp;nbsp;ExternallyControlledLifetimeManager&amp;nbsp;returns the same Instance again and again, kind of singleton behaviour. This is fine because so stated in the documentation. However, I want Resolve to return a new Instance of the Registred Type whenever I call it. For me, this would be the standard behaviour. Is there a LifetimeManager around, waiting for me to download it?&lt;/p&gt;
&lt;p&gt;What would be the approach, write a new LifetimeManager or find the right configuration? Thanks for any hint.&lt;/p&gt;
&lt;p&gt;btw. I am using unity configuration based.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>peterkae</author><pubDate>Wed, 01 Jul 2009 13:36:10 GMT</pubDate><guid isPermaLink="false">New Post: Per Call Resolve by new() LifetimeManager  20090701013610P</guid></item><item><title>New Post: Why does Unity create A first chance exception of type 'System.Threading.SynchronizationLockException' during startup</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60951</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;See here: &lt;a href="http://www.tavaresstudios.com/Blog/post/Writing-Custom-Lifetime-Managers.aspx"&gt;http://www.tavaresstudios.com/Blog/post/Writing-Custom-Lifetime-Managers.aspx&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>ctavares</author><pubDate>Tue, 30 Jun 2009 04:43:13 GMT</pubDate><guid isPermaLink="false">New Post: Why does Unity create A first chance exception of type 'System.Threading.SynchronizationLockException' during startup 20090630044313A</guid></item><item><title>New Post: Register Type with Register Name in config file?</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61012</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Sarah.&lt;/p&gt;
&lt;p&gt;I stumbled on the fact myself just a little later.&lt;/p&gt;
&lt;p&gt;Could have just thought about it a little more I guess.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Kimball&lt;/p&gt;&lt;/div&gt;</description><author>kimballjohnson</author><pubDate>Tue, 30 Jun 2009 04:16:11 GMT</pubDate><guid isPermaLink="false">New Post: Register Type with Register Name in config file? 20090630041611A</guid></item><item><title>New Post: Register Type with Register Name in config file?</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61012</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Specify the registration name using the name attribute&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;lt;type type=&amp;quot;IEnlistmentNotification&amp;quot; mapTo=&amp;quot;FlexAleManager&amp;quot; name=&amp;quot;Flex&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;br&gt;&lt;/em&gt;&lt;/strong&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;&lt;span style="color:#3e62a6"&gt;entlib.support@avanade.com&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Tue, 30 Jun 2009 02:29:12 GMT</pubDate><guid isPermaLink="false">New Post: Register Type with Register Name in config file? 20090630022912A</guid></item><item><title>New Post: Register Type with Register Name in config file?</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=61012</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;When registering and resolving types in a Unity Container using code you can use 'Registration Names' to disambiguate your references that derive from an interface or base class hierarchy.&lt;/p&gt;
&lt;p&gt;The 'registration name' text would be provided as a parameter to the register and resolve methods:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myContainer.RegisterType&amp;lt;IMyService, CustomerService&amp;gt;(&amp;quot;Customers&amp;quot;);&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyServiceBase result = myContainer.Resolve&amp;lt;MyServiceBase&amp;gt;(&amp;quot;Customers&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However when I register types in the configuration files I do not see where the 'registration name' can be assigned&lt;/p&gt;
&lt;p&gt;I register an Interface:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;IEnlistmentNotification&amp;quot; type=&amp;quot;System.Transactions.IEnlistmentNotification, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;Then two types that I happen to know implement that interface:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;PlaylistManager&amp;quot; type=&amp;quot;Sample.Dailies.Grid.Workers.PlaylistManager, Sample.Dailies.Grid.Workers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;FlexAleManager&amp;quot; type=&amp;quot;Sample.Dailies.Grid.Workers.FlexAleManager, Sample.Dailies.Grid.Workers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;Then I provide mappings between the interface and the two types:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type type=&amp;quot;IEnlistmentNotification&amp;quot; mapTo=&amp;quot;FlexAleManager&amp;quot;&amp;gt;&amp;lt;lifetime type=&amp;quot;singleton&amp;quot;/&amp;gt;&amp;lt;/type&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type type=&amp;quot;IEnlistmentNotification&amp;quot; mapTo=&amp;quot;PlaylistManager&amp;quot;&amp;gt;&amp;lt;lifetime type=&amp;quot;singleton&amp;quot;/&amp;gt;&amp;lt;/type&amp;gt;&lt;/p&gt;
&lt;p&gt;That seems to correspond to this code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myContainer.RegisterType&amp;lt;IEnlistmentNotification, FlexAleManager&amp;gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myContainer.RegisterType&amp;lt;IEnlistmentNotification, PlaylistManager&amp;gt;();&lt;/p&gt;
&lt;p&gt;but clearly what I need is a disambiguating config entry that corresponds to this code:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myContainer.RegisterType&amp;lt;IEnlistmentNotification, FlexAleManager&amp;gt;(&amp;quot;Flex&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myContainer.RegisterType&amp;lt;IEnlistmentNotification, PlaylistManager&amp;gt;(&amp;quot;Play&amp;quot;);&lt;/p&gt;
&lt;p&gt;Then when I get into my code I could do this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnlistmentNotification flex = myContainer.Resolve&amp;lt;IEnlistmentNotification&amp;gt;(&amp;quot;Flex&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEnlistmentNotification play = myContainer.Resolve&amp;lt;IEnlistmentNotification&amp;gt;(&amp;quot;Play&amp;quot;);&lt;/p&gt;
&lt;p&gt;See what I mean?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kimball&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kimballjohnson</author><pubDate>Tue, 30 Jun 2009 01:15:49 GMT</pubDate><guid isPermaLink="false">New Post: Register Type with Register Name in config file? 20090630011549A</guid></item><item><title>New Post: Catching exceptions in CallHandlers</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=51986</link><description>&lt;div style="line-height: normal;"&gt;&lt;div&gt;Hi&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;First of all let me apologize for the delay, i´ve been very busy :)&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;I have a few classes to show you this, i will post them. If you like i could send them to you but here it goes&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;1.  Console class&lt;/div&gt;
&lt;div&gt;1. Console class&lt;br&gt; #region Unity Interception&lt;br&gt;            UnityContainer _container = new UnityContainer();&lt;br&gt;            _container.RegisterType&amp;lt;IBusinessLayerClass1, BusinessLayerClass1&amp;gt;();&lt;br&gt;            _container.AddNewExtension&amp;lt;Interception&amp;gt;();&lt;/div&gt;

&lt;div&gt;            _container.Configure&amp;lt;Interception&amp;gt;()&lt;br&gt;                .SetDefaultInterceptorFor&amp;lt;IBusinessLayerClass1&amp;gt;(new InterfaceInterceptor())&lt;br&gt;                .AddPolicy(&amp;quot;ExceptionPolicy&amp;quot;)&lt;br&gt;
                    .AddMatchingRule(new AssemblyMatchingRule(&amp;quot;UnityTesting&amp;quot;))&lt;br&gt;                    .AddCallHandler(new ExceptionInterceptor());&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;            IBusinessLayerClass1 bl1 = _container.Resolve&amp;lt;IBusinessLayerClass1&amp;gt;();&lt;br&gt;            int i = 0;&lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;            //ODD Behaviour&lt;br&gt;            //Uncomment try to have good beavhior&lt;br&gt;            //try&lt;br&gt;            //{&lt;br&gt;                i = bl1.Exception2();            &lt;br&gt;            //}&lt;br&gt;            //catch (Exception ex)&lt;br&gt;
            //{&lt;br&gt;            //    Console.WriteLine(&amp;quot;:-&amp;gt;&amp;quot; + ex.GetType());&lt;br&gt;            //}&lt;/div&gt;
&lt;div&gt;&lt;br&gt;            Console.WriteLine(i);&lt;/div&gt;
&lt;div&gt;&lt;br&gt;            #endregion&lt;br&gt;   &lt;br&gt;   &lt;br&gt;2. BusinessLayerClass &lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;br&gt;using ExceptionInterceptionUnityConsole.Business;&lt;br&gt;
using ExceptionInterceptionUnityConsole.Contracts;&lt;br&gt;using Microsoft.Practices.Unity;&lt;br&gt;namespace ExceptionInterceptionUnityConsole.Business&lt;br&gt;{&lt;br&gt;    public class BusinessLayerClass1 : IBusinessLayerClass1&lt;br&gt;    {&lt;/div&gt;

&lt;div&gt;        private ITransactionContext _ctx;&lt;/div&gt;
&lt;div&gt;        #region IBusinessLayerClass1 Members&lt;/div&gt;
&lt;div&gt;        public ITransactionContext DataContext&lt;br&gt;        {&lt;br&gt;            get&lt;br&gt;            {&lt;br&gt;                return _ctx;&lt;br&gt;            }&lt;br&gt;            set&lt;br&gt;            {&lt;br&gt;                _ctx = value;&lt;br&gt;
            }&lt;br&gt;        }&lt;/div&gt;
&lt;div&gt;        public void BLClass1MethodA()&lt;br&gt;        {&lt;br&gt;            Console.WriteLine(&amp;quot;BLClass1MethodA()&amp;quot;);&lt;br&gt;        }&lt;/div&gt;
&lt;div&gt;        public void BLClass1MethodB()&lt;br&gt;        {&lt;br&gt;            Console.WriteLine(&amp;quot;BLClass1MethodB()&amp;quot;);&lt;br&gt;        }&lt;/div&gt;
&lt;div&gt;       &lt;br&gt;       &lt;/div&gt;
&lt;div&gt;        //public void Exception1()&lt;br&gt;        //{&lt;br&gt;        //    throw new using ExceptionInterceptionUnityConsole.Business;.Exceptions.BLException();&lt;br&gt;        //}&lt;/div&gt;
&lt;div&gt;        public int Exception2()&lt;br&gt;        {&lt;br&gt;            int a1=0;&lt;br&gt;            return 3 / a1;&lt;br&gt;        }&lt;/div&gt;
&lt;div&gt;        #endregion&lt;br&gt;    }&lt;br&gt;}&lt;/div&gt;
&lt;div&gt;3.Contracts&lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;br&gt;using Microsoft.Practices.Unity;&lt;br&gt;namespace ExceptionInterceptionUnityConsole.Contracts&lt;br&gt;{&lt;br&gt;    public interface IBusinessLayerClass1&lt;br&gt;
    {&lt;br&gt;        ITransactionContext DataContext { get; set; }&lt;br&gt;        void BLClass1MethodA();&lt;br&gt;        void BLClass1MethodB();&lt;/div&gt;
&lt;div&gt;        //void Exception1();&lt;/div&gt;
&lt;div&gt;        int Exception2();&lt;br&gt;    }&lt;br&gt;}&lt;/div&gt;
&lt;div&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;/div&gt;
&lt;div&gt;namespace ExceptionInterceptionUnityConsole.Contracts&lt;br&gt;{&lt;br&gt;    public interface ITransactionContext&lt;br&gt;    {&lt;br&gt;        bool IsAlive();&lt;br&gt;        void Begin();&lt;br&gt;        void Commit();&lt;br&gt;        void RollBack();&lt;br&gt;
    }&lt;br&gt;}&lt;/div&gt;
&lt;div&gt;4.Interceptor&lt;br&gt;using System;&lt;br&gt;using System.Collections.Generic;&lt;br&gt;using System.Linq;&lt;br&gt;using System.Text;&lt;/div&gt;
&lt;div&gt;using Microsoft.Practices.Unity;&lt;br&gt;using Microsoft.Practices.Unity.InterceptionExtension;&lt;br&gt;using Microsoft.Practices.Unity.Configuration;&lt;/div&gt;
&lt;div&gt;namespace ExceptionInterceptionUnityConsole.Interceptors&lt;br&gt;{&lt;br&gt;    public class ExceptionInterceptor:ICallHandler&lt;br&gt;    {&lt;/div&gt;
&lt;div&gt;        public ExceptionInterceptor() { }&lt;/div&gt;
&lt;div&gt;        #region ICallHandler Members&lt;/div&gt;
&lt;div&gt;        public IMethodReturn Invoke(IMethodInvocation input, GetNextHandlerDelegate getNext)&lt;br&gt;        {&lt;br&gt;            IMethodReturn val;&lt;br&gt;            val = getNext()(input, getNext);&lt;/div&gt;
&lt;div&gt;            if (val.Exception != null)&lt;br&gt;            {&lt;br&gt;                Console.WriteLine(&amp;quot;Exception has been thrown&amp;quot;);&lt;br&gt;                Console.WriteLine(val.Exception.Message.ToString());&lt;br&gt;                Console.WriteLine(&amp;quot;[Exiting method: {0}]&amp;quot;, &lt;a href="http://input.MethodBase.Name"&gt;input.MethodBase.Name&lt;/a&gt;);&lt;br&gt;
                return input.CreateExceptionMethodReturn(val.Exception);&lt;/div&gt;
&lt;div&gt;            }&lt;br&gt;            else&lt;br&gt;            {&lt;br&gt;                Console.WriteLine(&amp;quot;[Exiting method: {0}]&amp;quot;, &lt;a href="http://input.MethodBase.Name"&gt;input.MethodBase.Name&lt;/a&gt;);&lt;br&gt;                return val;&lt;br&gt;
            }&lt;/div&gt;
&lt;div&gt;            &lt;/div&gt;
&lt;div&gt;        }&lt;/div&gt;
&lt;div&gt;        public int Order&lt;br&gt;        {&lt;br&gt;            get&lt;br&gt;            {&lt;br&gt;               return 0 ;&lt;br&gt;            }&lt;br&gt;            set&lt;br&gt;            {&lt;br&gt;                throw new NotImplementedException();&lt;br&gt;
            }&lt;br&gt;        }&lt;/div&gt;
&lt;div&gt;        #endregion&lt;br&gt;    }&lt;br&gt;}&lt;/div&gt;
&lt;div&gt;&lt;br&gt;Again, if you prefer, or have the time, i can send the project to you&lt;/div&gt;
&lt;div&gt;Thanx &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt; &lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;br&gt; &lt;/div&gt;
&lt;div&gt;2009/6/9 ctavares &lt;span dir=ltr&gt;&amp;lt;&lt;a href="mailto:notifications@codeplex.com"&gt;notifications@codeplex.com&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex"&gt;
&lt;div&gt;
&lt;p&gt;From: ctavares&lt;/p&gt;
&lt;div&gt;
&lt;p&gt;Also, one minor thing. If you're not replacing the exception, you don't have to do &amp;quot;return input.CreateExceptionMessageReturn(val.Exception);&amp;quot;, you can just return val. It's already set up with the thrown exception inside it.&lt;/p&gt;

&lt;p&gt; &lt;/p&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;Read the &lt;a href="http://unity.codeplex.com/Thread/View.aspx?ThreadId=51986&amp;ANCHOR#Post199326"&gt;full discussion online&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To add a post to this discussion, reply to this email (&lt;a href="mailto:unity@discussions.codeplex.com?subject=[unity:51986]"&gt;unity@discussions.codeplex.com&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;To start a new discussion for this project, email &lt;a href="mailto:unity@discussions.codeplex.com"&gt;unity@discussions.codeplex.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You are receiving this email because you subscribed to this discussion on CodePlex. You can &lt;a href="http://www.codeplex.com/site/discussions/thread/unsubscribe/51986"&gt;unsubscribe&lt;/a&gt; on codePlex.com.&lt;/p&gt;

&lt;p&gt;Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at &lt;a href="http://codeplex.com/"&gt;codeplex.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;/div&gt;&lt;br&gt;&lt;/div&gt;</description><author>Melkor</author><pubDate>Mon, 29 Jun 2009 15:23:33 GMT</pubDate><guid isPermaLink="false">New Post: Catching exceptions in CallHandlers 20090629032333P</guid></item><item><title>New Post: Why does Unity create A first chance exception of type 'System.Threading.SynchronizationLockException' during startup</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60951</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Unity appears to use exceptions as flowcontrol during startup.&amp;nbsp; This makes debugging VERY hard when break on exception is turned on.&amp;nbsp; The specific error message is&lt;br&gt;&lt;br&gt;A first chance exception of type 'System.Threading.SynchronizationLockException' occurred in Microsoft.Practices.Unity.dll&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>mwatts42</author><pubDate>Mon, 29 Jun 2009 14:02:34 GMT</pubDate><guid isPermaLink="false">New Post: Why does Unity create A first chance exception of type 'System.Threading.SynchronizationLockException' during startup 20090629020234P</guid></item><item><title>Created Issue: error injecting mvc application</title><link>http://unity.codeplex.com/WorkItem/View.aspx?WorkItemId=4628</link><description>i&amp;#39;m adding unity support to an mvc application using as reference this article http&amp;#58;&amp;#47;&amp;#47;blogs.microsoft.co.il&amp;#47;blogs&amp;#47;gilf&amp;#47;archive&amp;#47;2009&amp;#47;02&amp;#47;08&amp;#47;how-to-use-unity-container-in-asp-net-mvc-framework.aspx&amp;#58; every controller have 2 costructors this way&amp;#58;&lt;br /&gt;&lt;br /&gt;public DiarioController&amp;#40;&amp;#41;&lt;br /&gt;            &amp;#58; this&amp;#40;new AttivitaRepository&amp;#40;new AttivitaDataContext&amp;#40;&amp;#41;&amp;#41;&amp;#41;&lt;br /&gt;        &amp;#123; &amp;#125;&lt;br /&gt;&lt;br /&gt;        public DiarioController&amp;#40;AttivitaRepository context&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            this.repository &amp;#61; context&amp;#59;&lt;br /&gt;            ValidateRequest &amp;#61; false&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;if i run the program i obtain the error&lt;br /&gt;&lt;br /&gt;Microsoft.Practices.Unity.ResolutionFailedException was unhandled by user code&lt;br /&gt;  Message&amp;#61;Resolution of the dependency failed, type &amp;#61; &amp;#34;Attivita.Controllers.DiarioController&amp;#34;, name &amp;#61; &amp;#34;&amp;#34;. Exception message is&amp;#58; The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Controllers.DiarioController, null&amp;#93;&amp;#41; failed&amp;#58; The parameter context could not be resolved when attempting to call constructor Attivita.Controllers.DiarioController&amp;#40;Attivita.Models.AttivitaRepository context&amp;#41;. &amp;#40;Strategy type BuildPlanStrategy, index 3&amp;#41;&lt;br /&gt;  Source&amp;#61;Microsoft.Practices.Unity&lt;br /&gt;  TypeRequested&amp;#61;DiarioController&lt;br /&gt;  StackTrace&amp;#58;&lt;br /&gt;       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp&amp;#40;Type t, Object existing, String name&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;UnityContainer.cs&amp;#58;line 474&lt;br /&gt;       at Microsoft.Practices.Unity.UnityContainer.DoBuildUp&amp;#40;Type t, String name&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;UnityContainer.cs&amp;#58;line 457&lt;br /&gt;       at Microsoft.Practices.Unity.UnityContainer.Resolve&amp;#40;Type t, String name&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;UnityContainer.cs&amp;#58;line 155&lt;br /&gt;       at Microsoft.Practices.Unity.UnityContainerBase.Resolve&amp;#40;Type t&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;UnityContainerBase.cs&amp;#58;line 488&lt;br /&gt;       at Attivita.Repositories.UnityControllerFactory.CreateController&amp;#40;RequestContext requestContext, String controllerName&amp;#41; in d&amp;#58;&amp;#92;Sorgenti&amp;#92;CS 35&amp;#92;Attivita&amp;#92;Attivita&amp;#92;Repositories&amp;#92;UnityControllerFactory.cs&amp;#58;line 27&lt;br /&gt;       at System.Web.Mvc.MvcHandler.ProcessRequest&amp;#40;HttpContextBase httpContext&amp;#41;&lt;br /&gt;       at System.Web.Mvc.MvcHandler.ProcessRequest&amp;#40;HttpContext httpContext&amp;#41;&lt;br /&gt;       at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest&amp;#40;HttpContext httpContext&amp;#41;&lt;br /&gt;       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute&amp;#40;&amp;#41;&lt;br /&gt;       at System.Web.HttpApplication.ExecuteStep&amp;#40;IExecutionStep step, Boolean&amp;#38; completedSynchronously&amp;#41;&lt;br /&gt;  InnerException&amp;#58; Microsoft.Practices.ObjectBuilder2.BuildFailedException&lt;br /&gt;       Message&amp;#61;The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Controllers.DiarioController, null&amp;#93;&amp;#41; failed&amp;#58; The parameter context could not be resolved when attempting to call constructor Attivita.Controllers.DiarioController&amp;#40;Attivita.Models.AttivitaRepository context&amp;#41;. &amp;#40;Strategy type BuildPlanStrategy, index 3&amp;#41;&lt;br /&gt;       Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;       BuildKey&amp;#61;Build Key&amp;#91;Attivita.Controllers.DiarioController, null&amp;#93;&lt;br /&gt;       ExecutingStrategyIndex&amp;#61;3&lt;br /&gt;       ExecutingStrategyTypeName&amp;#61;BuildPlanStrategy&lt;br /&gt;       StackTrace&amp;#58;&lt;br /&gt;            at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 109&lt;br /&gt;            at Microsoft.Practices.ObjectBuilder2.Builder.BuildUp&amp;#40;IReadWriteLocator locator, ILifetimeContainer lifetime, IPolicyList policies, IStrategyChain strategies, Object buildKey, Object existing&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Builder.cs&amp;#58;line 61&lt;br /&gt;            at Microsoft.Practices.Unity.UnityContainer.DoBuildUp&amp;#40;Type t, Object existing, String name&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;UnityContainer.cs&amp;#58;line 464&lt;br /&gt;       InnerException&amp;#58; System.InvalidOperationException&lt;br /&gt;            Message&amp;#61;The parameter context could not be resolved when attempting to call constructor Attivita.Controllers.DiarioController&amp;#40;Attivita.Models.AttivitaRepository context&amp;#41;.&lt;br /&gt;            Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;            StackTrace&amp;#58;&lt;br /&gt;                 at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForResolutionFailed&amp;#40;Exception inner, String parameterName, String constructorSignature, IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;Creation&amp;#92;DynamicMethodConstructorStrategy.cs&amp;#58;line 154&lt;br /&gt;                 at BuildUp_Attivita.Controllers.DiarioController&amp;#40;IBuilderContext &amp;#41;&lt;br /&gt;                 at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;DynamicMethodBuildPlan.cs&amp;#58;line 37&lt;br /&gt;                 at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;BuildPlanStrategy.cs&amp;#58;line 40&lt;br /&gt;                 at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 92&lt;br /&gt;            InnerException&amp;#58; Microsoft.Practices.ObjectBuilder2.BuildFailedException&lt;br /&gt;                 Message&amp;#61;The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Models.AttivitaRepository, null&amp;#93;&amp;#41; failed&amp;#58; The parameter dataContext could not be resolved when attempting to call constructor Attivita.Models.AttivitaRepository&amp;#40;Attivita.Models.AttivitaDataContext dataContext&amp;#41;. &amp;#40;Strategy type BuildPlanStrategy, index 3&amp;#41;&lt;br /&gt;                 Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;                 BuildKey&amp;#61;Build Key&amp;#91;Attivita.Models.AttivitaRepository, null&amp;#93;&lt;br /&gt;                 ExecutingStrategyIndex&amp;#61;3&lt;br /&gt;                 ExecutingStrategyTypeName&amp;#61;BuildPlanStrategy&lt;br /&gt;                 StackTrace&amp;#58;&lt;br /&gt;                      at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 109&lt;br /&gt;                      at Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;ObjectBuilder&amp;#92;NamedTypeDependencyResolverPolicy.cs&amp;#58;line 52&lt;br /&gt;                      at BuildUp_Attivita.Controllers.DiarioController&amp;#40;IBuilderContext &amp;#41;&lt;br /&gt;                 InnerException&amp;#58; System.InvalidOperationException&lt;br /&gt;                      Message&amp;#61;The parameter dataContext could not be resolved when attempting to call constructor Attivita.Models.AttivitaRepository&amp;#40;Attivita.Models.AttivitaDataContext dataContext&amp;#41;.&lt;br /&gt;                      Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;                      StackTrace&amp;#58;&lt;br /&gt;                           at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForResolutionFailed&amp;#40;Exception inner, String parameterName, String constructorSignature, IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;Creation&amp;#92;DynamicMethodConstructorStrategy.cs&amp;#58;line 154&lt;br /&gt;                           at BuildUp_Attivita.Models.AttivitaRepository&amp;#40;IBuilderContext &amp;#41;&lt;br /&gt;                           at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;DynamicMethodBuildPlan.cs&amp;#58;line 37&lt;br /&gt;                           at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;BuildPlanStrategy.cs&amp;#58;line 40&lt;br /&gt;                           at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 92&lt;br /&gt;                      InnerException&amp;#58; Microsoft.Practices.ObjectBuilder2.BuildFailedException&lt;br /&gt;                           Message&amp;#61;The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Models.AttivitaDataContext, null&amp;#93;&amp;#41; failed&amp;#58; The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Models.AttivitaDataContext, null&amp;#93;&amp;#41; failed&amp;#58; The type AttivitaDataContext has multiple constructors of length 2. Unable to disambiguate. &amp;#40;Strategy type DynamicMethodConstructorStrategy, index 0&amp;#41; &amp;#40;Strategy type BuildPlanStrategy, index 3&amp;#41;&lt;br /&gt;                           Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;                           BuildKey&amp;#61;Build Key&amp;#91;Attivita.Models.AttivitaDataContext, null&amp;#93;&lt;br /&gt;                           ExecutingStrategyIndex&amp;#61;3&lt;br /&gt;                           ExecutingStrategyTypeName&amp;#61;BuildPlanStrategy&lt;br /&gt;                           StackTrace&amp;#58;&lt;br /&gt;                                at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 109&lt;br /&gt;                                at Microsoft.Practices.Unity.ObjectBuilder.NamedTypeDependencyResolverPolicy.Resolve&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;Unity&amp;#92;Src&amp;#92;ObjectBuilder&amp;#92;NamedTypeDependencyResolverPolicy.cs&amp;#58;line 52&lt;br /&gt;                                at BuildUp_Attivita.Models.AttivitaRepository&amp;#40;IBuilderContext &amp;#41;&lt;br /&gt;                           InnerException&amp;#58; Microsoft.Practices.ObjectBuilder2.BuildFailedException&lt;br /&gt;                                Message&amp;#61;The current build operation &amp;#40;build key Build Key&amp;#91;Attivita.Models.AttivitaDataContext, null&amp;#93;&amp;#41; failed&amp;#58; The type AttivitaDataContext has multiple constructors of length 2. Unable to disambiguate. &amp;#40;Strategy type DynamicMethodConstructorStrategy, index 0&amp;#41;&lt;br /&gt;                                Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;                                BuildKey&amp;#61;Build Key&amp;#91;Attivita.Models.AttivitaDataContext, null&amp;#93;&lt;br /&gt;                                ExecutingStrategyIndex&amp;#61;0&lt;br /&gt;                                ExecutingStrategyTypeName&amp;#61;DynamicMethodConstructorStrategy&lt;br /&gt;                                StackTrace&amp;#58;&lt;br /&gt;                                     at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 109&lt;br /&gt;                                     at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlanCreatorPolicy.CreatePlan&amp;#40;IBuilderContext context, Object buildKey&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;DynamicMethodBuildPlanCreatorPolicy.cs&amp;#58;line 50&lt;br /&gt;                                     at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;BuildPlanStrategy.cs&amp;#58;line 34&lt;br /&gt;                                     at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 92&lt;br /&gt;                                InnerException&amp;#58; System.InvalidOperationException&lt;br /&gt;                                     Message&amp;#61;The type AttivitaDataContext has multiple constructors of length 2. Unable to disambiguate.&lt;br /&gt;                                     Source&amp;#61;Microsoft.Practices.ObjectBuilder2&lt;br /&gt;                                     StackTrace&amp;#58;&lt;br /&gt;                                          at Microsoft.Practices.ObjectBuilder2.ConstructorSelectorPolicyBase&amp;#96;1.FindLongestConstructor&amp;#40;Type typeToConstruct&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;Creation&amp;#92;ConstructorSelectorPolicyBase.cs&amp;#58;line 114&lt;br /&gt;                                          at Microsoft.Practices.ObjectBuilder2.ConstructorSelectorPolicyBase&amp;#96;1.SelectConstructor&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;Creation&amp;#92;ConstructorSelectorPolicyBase.cs&amp;#58;line 36&lt;br /&gt;                                          at Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.PreBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;BuildPlan&amp;#92;DynamicMethod&amp;#92;Creation&amp;#92;DynamicMethodConstructorStrategy.cs&amp;#58;line 54&lt;br /&gt;                                          at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp&amp;#40;IBuilderContext context&amp;#41; in D&amp;#58;&amp;#92;Sorgenti&amp;#92;Unity&amp;#92;ObjectBuilder&amp;#92;Src&amp;#92;Strategies&amp;#92;StrategyChain.cs&amp;#58;line 92&lt;br /&gt;                                     InnerException&amp;#58; &lt;br /&gt;&lt;br /&gt;here&lt;br /&gt;                return containerAccessor.Container.Resolve&amp;#40;controllerTypes.First&amp;#40;&amp;#41;&amp;#41; as IController&amp;#59;&lt;br /&gt;when trying to resolve the controller&lt;br /&gt;&lt;br /&gt;if i remove the first constructor leaving just the constructor with empty param it works&amp;#58; is there any way to let it works without removing costructor&amp;#63;&lt;br /&gt;</description><author>lucamorelli</author><pubDate>Sat, 27 Jun 2009 11:21:07 GMT</pubDate><guid isPermaLink="false">Created Issue: error injecting mvc application 20090627112107A</guid></item><item><title>New Post: Auto-mocking container extension</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60834</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I wrote a container extension that auto generates mocks for any interfaces that aren't explicitly registered. I use it for reducing the amount of setup required in test code. You can use it like this:&lt;/p&gt;
&lt;p&gt;&lt;span style="border-collapse:separate;color:#000000;font-family:'Times New Roman';font-size:16px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"&gt;&lt;span style="font-family:calibri;text-align:left"&gt;
&lt;pre style="padding:2px;background-color:#f4f4f4;color:black;font-family:'Courier New',Courier,monospace;font-size:8pt"&gt;[SetUp]&lt;br&gt;&lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;void&lt;/span&gt; SetUp()&lt;br&gt;{&lt;br&gt;    container = &lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;new&lt;/span&gt; UnityContainer();&lt;br&gt;    container.AddNewExtension&amp;lt;AutoMockingContainerExtension&amp;gt;();&lt;br&gt;}&lt;br&gt;&lt;br&gt;[Test]&lt;br&gt;&lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;void&lt;/span&gt; Should_be_really_easy_to_test()&lt;br&gt;{&lt;br&gt;    container.RegisterMock&amp;lt;IDependencyThatNeedsExplicitMocking&amp;gt;()&lt;br&gt;        .Expect(d =&amp;gt; d.MyMethod(It.IsAny&amp;lt;&lt;span style="border-width:0px;margin:0px;padding:0px;color:#0000ff"&gt;int&lt;/span&gt;&amp;gt;()))&lt;br&gt;        .Returns(&lt;span style="border-width:0px;margin:0px;padding:0px;color:#006080"&gt;&amp;quot;I want to specify the return value&amp;quot;&lt;/span&gt;);&lt;br&gt;&lt;br&gt;    var service = container.Resolve&amp;lt;ServiceWithThreeDependencies&amp;gt;();&lt;br&gt;    var result = service.DoSomething();&lt;br&gt;&lt;br&gt;    Assert.AreEqual(&lt;span style="border-width:0px;margin:0px;padding:0px;color:#006080"&gt;&amp;quot;Look mom, I didn't have to mock the other 2 dependencies!&amp;quot;&lt;/span&gt;, result);&lt;br&gt;}&lt;/pre&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There is full post with source code here &lt;a href="http://www.agileatwork.com/auto-mocking-unity-container-extension/"&gt;http://www.agileatwork.com/auto-mocking-unity-container-extension/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>mvalenty</author><pubDate>Sat, 27 Jun 2009 07:31:25 GMT</pubDate><guid isPermaLink="false">New Post: Auto-mocking container extension 20090627073125A</guid></item><item><title>New Post: String -&gt; String type conversion</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60662</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks! I've also found this post and did that way :) It's very frustrating that Unity is very poorly documented. I thought of switching to it from Spring.NET, where I coould solve all of the issues easely. But now I don't even know what to do, hence basic configuration settings takes that long&lt;/p&gt;&lt;/div&gt;</description><author>ivasena</author><pubDate>Fri, 26 Jun 2009 15:01:22 GMT</pubDate><guid isPermaLink="false">New Post: String -&gt; String type conversion 20090626030122P</guid></item><item><title>New Post: String -&gt; String type conversion</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60662</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;There is another post regarding a similar issue with the same cause (&lt;a href="http://unity.codeplex.com/Thread/View.aspx?ThreadId=55758"&gt;http://unity.codeplex.com/Thread/View.aspx?ThreadId=55758&lt;/a&gt;). In a nutshell, if the value type is a string, Unity never attempts to call the TypeConverter you specified.&lt;/p&gt;
&lt;p&gt;I also posted my solution creating a new configuration element allowing you to specify values indirectly by referencing an appSetting key. I have created similar code for connectionString's. I will let you do the exercise of implementing that -- it should be pretty easy starting from that posting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>swheaton</author><pubDate>Fri, 26 Jun 2009 13:47:17 GMT</pubDate><guid isPermaLink="false">New Post: String -&gt; String type conversion 20090626014717P</guid></item><item><title>New Post: String -&gt; String type conversion</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60662</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;div style="color:Black;background-color:White"&gt;&lt;pre&gt;&lt;span style="color:#0000ff"&gt;Hi!&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:#0000ff"&gt;There is a following  configuration :&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;type&lt;/span&gt; &lt;span style="color:Red"&gt;type&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;IDbStorage&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;    &lt;span style="color:Red"&gt;mapTo&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;DbStorage&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
    &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;lifetime&lt;/span&gt; &lt;span style="color:Red"&gt;type&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;singleton&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;typeConfig&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;constructor&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
            &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;param&lt;/span&gt; &lt;span style="color:Red"&gt;name&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;connectionString&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;  &lt;span style="color:Red"&gt;parameterType&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;System.String&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
                &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;value&lt;/span&gt; &lt;span style="color:Red"&gt;value&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;cacheDb&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
                     &lt;span style="color:Red"&gt;type&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;System.String&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
                     &lt;span style="color:Red"&gt;typeConverter&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;ConnectionStringTypeConverter&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;/&amp;gt;&lt;/span&gt;
            &lt;span style="color:Blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515"&gt;param&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
        &lt;span style="color:Blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515"&gt;constructor&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
    &lt;span style="color:Blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515"&gt;typeConfig&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
&lt;span style="color:Blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#A31515"&gt;type&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:#0000ff"&gt;&lt;br&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:#0000ff"&gt;Value of the&amp;nbsp;&lt;strong&gt;connectionString&lt;/strong&gt;&amp;nbsp;is the name of the connection string in app.config. I would like the DbStorage constructor to receive not the name of the connection string, but it's value taken from the app.config. &lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:#0000ff"&gt;Unfortunately, the specified converter is NOT called, hence the provided value is a string by itself. Is it possible to solve this somehow?&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span style="color:#0000ff"&gt;&lt;br&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ivasena</author><pubDate>Thu, 25 Jun 2009 15:01:22 GMT</pubDate><guid isPermaLink="false">New Post: String -&gt; String type conversion 20090625030122P</guid></item><item><title>New Comment on "Webcast demos"</title><link>http://unity.codeplex.com/Wiki/View.aspx?title=Webcast demos&amp;ANCHOR#C13239</link><description>Hope I don&amp;#39;t miss anything but the first webcast is available here&amp;#58;&amp;#10;https&amp;#58;&amp;#47;&amp;#47;www106.livemeeting.com&amp;#47;cc&amp;#47;wwe_us&amp;#47;view&amp;#63;cn&amp;#61;guest&amp;#38;id&amp;#61;1032382093&amp;#38;pw&amp;#61;23D44136&amp;#10;I have already downloaded it and watching...</description><author>MarcoMangia</author><pubDate>Wed, 24 Jun 2009 20:05:36 GMT</pubDate><guid isPermaLink="false">New Comment on "Webcast demos" 20090624080536P</guid></item><item><title>New Post: Nested configuration and unity extensions</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60543</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Update:&amp;nbsp; I found where the exception is being thrown explicitly in the Unity.Interception.Configuration assembly.&amp;nbsp; I still can't explain why.&amp;nbsp; I am continuing to debug.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/// Collection of &amp;lt;see cref=&amp;quot;InterceptorTargetConfigurationElementBase&amp;quot;/&amp;gt; elements&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// from the configuration file.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;/summary&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;seealso cref=&amp;quot;InterceptorTargetConfigurationElementBase&amp;quot;/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;seealso cref=&amp;quot;KeyInterceptorTargetConfigurationElement&amp;quot;/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /// &amp;lt;seealso cref=&amp;quot;DefaultInterceptorTargetConfigurationElement&amp;quot;/&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FxCop suppression: This is not a normal collection, not going to implement generic interfaces&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [SuppressMessage(&amp;quot;Microsoft.Design&amp;quot;, &amp;quot;CA1010:CollectionsShouldImplementGenericInterface&amp;quot;)]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class InterceptorTargetConfigurationElementCollection : TypeResolvingConfigurationElementCollection&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///&amp;lt;summary&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///When overridden in a derived class, creates a new &amp;lt;see cref=&amp;quot;T:System.Configuration.ConfigurationElement&amp;quot;&amp;gt;&amp;lt;/see&amp;gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///&amp;lt;/summary&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///&amp;lt;returns&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///A new &amp;lt;see cref=&amp;quot;T:System.Configuration.ConfigurationElement&amp;quot;&amp;gt;&amp;lt;/see&amp;gt;.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///&amp;lt;/returns&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override ConfigurationElement CreateNewElement()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="text-decoration:underline"&gt;&lt;em&gt;&lt;strong&gt;throw new InvalidOperationException();&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;/div&gt;</description><author>jdulay</author><pubDate>Wed, 24 Jun 2009 18:25:01 GMT</pubDate><guid isPermaLink="false">New Post: Nested configuration and unity extensions 20090624062501P</guid></item><item><title>New Post: Nested configuration and unity extensions</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60543</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some background: I'm using CWAB to implement Modularity.&amp;nbsp; I'm following CWAB's example on how each module has it's own configuration file.&amp;nbsp; I've upgraded CWAB to leverage Unity as the container.&amp;nbsp; For the most part, this all works fine.&amp;nbsp; I have unity configuration sections in both the web.config and the module's config that specify type aliases and mappings and everything works fine. As shown below:&lt;/p&gt;
&lt;p&gt;/Web.config&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&amp;nbsp;&amp;lt;unity&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;typeAliases&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;blah blah blah&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/typeAliases&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;containers&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;container&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;types&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;blah blah blah&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/types&amp;gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/container&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/containers&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;/unity&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/MyModule/web.config&lt;/p&gt;
&lt;p&gt;&amp;lt;unity&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;typeAliases&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah blah blah&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/typeAliases&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;containers&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;container name=&amp;rdquo;MyModule&amp;rdquo;&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;types&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah blah blah&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/types&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/container&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/containers&amp;gt;&lt;br&gt; &amp;nbsp; &amp;lt;/unity&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My root container is configured using the unity section in the root web.config.&amp;nbsp; A child container is created and configured using the unity config in the MyModule/web.config.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Problem: I want to use Unity Interception.&amp;nbsp; When I add the corresponding extension, everything runs fine.&lt;span&gt;&amp;nbsp; &lt;/span&gt;But when I add an interceptor target configuration element, I get a configuration error when trying to configure the container.&amp;nbsp; So when i do this:&lt;/p&gt;
&lt;p&gt;/Web.config&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&amp;nbsp;&amp;lt;unity&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;typeAliases&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;blah blah blah&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/typeAliases&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;containers&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;container&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;types&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;blah blah blah&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/types&amp;gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;extensions&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;add type=&amp;quot;Microsoft.Practices.Unity.InterceptionExtension.Interception, Microsoft.Practices.Unity.Interception&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/extensions&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;extensionConfig&amp;gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;add name=&amp;quot;interception&amp;quot; type=&amp;quot;Microsoft.Practices.Unity.InterceptionExtension.Configuration.InterceptionConfigurationElement, Microsoft.Practices.Unity.Interception.Configuration&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;interceptors&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;interceptor type=&amp;quot;Microsoft.Practices.Unity.InterceptionExtension.VirtualMethodInterceptor, Microsoft.Practices.Unity.Interception&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;strong&gt;&lt;span style="background:yellow none repeat scroll 0% 0%"&gt;&amp;lt;key type=&amp;rdquo;mytype&amp;rdquo; name=&amp;rdquo;typename&amp;rdquo;/&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/interceptor&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/interceptors&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/add&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/extensionConfig&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/container&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/containers&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;/unity&amp;gt;&lt;/p&gt;
&lt;p style="line-height:12pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/MyModule/web.config&lt;/p&gt;
&lt;p&gt;&amp;lt;unity&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;typeAliases&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah blah blah&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/typeAliases&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;containers&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;container name=&amp;rdquo;MyModule&amp;rdquo;&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;types&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; blah blah blah&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/types&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/container&amp;gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/containers&amp;gt;&lt;br&gt; &amp;nbsp; &amp;lt;/unity&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I get the following error.&lt;span&gt;&amp;nbsp; &lt;/span&gt;Note how the source file is the module&amp;rsquo;s web.config even though I get the exception when trying to configure the root container using the unity section in the root web.config:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:18pt;font-family:'Verdana','sans-serif';color:red"&gt;Server Error in '/REBARTestApp' Application. &lt;/span&gt;&lt;/p&gt;
&lt;div style="text-align:center"&gt;&lt;span style="font-size:18pt;font-family:'Verdana','sans-serif';color:red"&gt; 
&lt;hr style="color:silver" size=1&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;em&gt;&lt;span style="font-size:14pt;font-family:'Verdana','sans-serif';color:maroon"&gt;Configuration Error&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14pt;font-family:'Verdana','sans-serif';color:maroon"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin-bottom:12pt"&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt;Description: &lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. &lt;br&gt; &lt;br&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt;Parser Error Message: &lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;An error occurred creating the configuration section handler for unity: Operation is not valid due to the current state of the object.&lt;br&gt; &lt;br&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt;Source Error:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;table style="background:#ffffcc none repeat scroll 0% 0%;width:100%" border=0 cellpadding=0 width="100%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="padding:0.75pt"&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:black"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:black"&gt;Line 34: &lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/authorization&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:black"&gt;Line   35:&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;/compositeWeb&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:red"&gt;Line 36:&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;unity&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:black"&gt;Line   37:&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;containers&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:9pt;font-family:'Lucida Console';color:black"&gt;Line   38:&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;container   name=&amp;quot;TestBizMod&amp;quot;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin-bottom:12pt"&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;&lt;br&gt; &lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt;Source File: &lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;c:\Projects\REBAR\REBAR\Main\Accenture.REBAR.TestApp\WebSites\REBARTestApp\testbizmod\web.config&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt; &amp;nbsp;&amp;nbsp; Line: &lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;36 &lt;/span&gt;&lt;/p&gt;
&lt;div style="text-align:center"&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt; 
&lt;hr style="color:silver" size=1&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="font-size:8.5pt;font-family:'Verdana','sans-serif';color:black"&gt;Version Information:&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:8.5pt;font-family:'Arial','sans-serif';color:black"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The full exception information is below:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;System.Configuration.ConfigurationErrorsException occurred&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;BareMessage=&amp;quot;An error occurred creating the configuration section handler for unity: Operation is not valid due to the current state of the object.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;Filename=&amp;quot;c:\Projects\REBAR\REBAR\Main\Accenture.REBAR.TestApp\WebSites\REBARTestApp\testbizmod\web.config&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;Line=36&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;Message=&amp;quot;An error occurred creating the configuration section handler for unity: Operation is not valid due to the current state of the object. (c:\Projects\REBAR\REBAR\Main\Accenture.REBAR.TestApp\WebSites\REBARTestApp\testbizmod\web.config line 36)&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;Source=&amp;quot;System.Configuration&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;StackTrace:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys, SectionInput input, Boolean isTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentResult, Boolean getLkg, Boolean getRuntimeObject, Object&amp;amp; result, Object&amp;amp; resultRuntimeObject)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object&amp;amp; result, Object&amp;amp; resultRuntimeObject)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Web.HttpContext.GetSection(String sectionName)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Web.Configuration.HttpConfigurationSystem.GetSection(String sectionName)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationManager.GetSection(String sectionName)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Accenture.REBAR.EAC.Containers.UnityCompositionContainer.GetUnityConfigSection() in c:\projects\REBAR\REBAR\Main\Accenture.REBAR.EAC\Accenture.REBAR.EAC\Containers\UnityCompositionContainer.vb:line 79&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &lt;/span&gt;InnerException: System.InvalidOperationException&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Message=&amp;quot;Operation is not valid due to the current state of the object.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Source=&amp;quot;Microsoft.Practices.Unity.Interception.Configuration&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;StackTrace:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at Microsoft.Practices.Unity.InterceptionExtension.Configuration.InterceptorTargetConfigurationElementCollection.CreateNewElement()&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElementCollection.CreateNewElement(String elementName)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElementCollection.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElement.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElementCollection.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElement.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElementCollection.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElement.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElementCollection.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.ConfigurationElement.Reset(ConfigurationElement parentElement)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSectionWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.CreateSection(Boolean inputIsTrusted, RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inputIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader reader, String filename, Int32 line)&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;InnerException:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any ideas???&lt;/p&gt;&lt;/div&gt;</description><author>jdulay</author><pubDate>Wed, 24 Jun 2009 16:39:37 GMT</pubDate><guid isPermaLink="false">New Post: Nested configuration and unity extensions 20090624043937P</guid></item><item><title>New Post: Injection of System.Int64 alias long values</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60516</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks!!! You are my day and nerve saver!&lt;/p&gt;
&lt;p&gt;Daniel&lt;/p&gt;&lt;/div&gt;</description><author>LOBOMINATOR</author><pubDate>Wed, 24 Jun 2009 13:18:07 GMT</pubDate><guid isPermaLink="false">New Post: Injection of System.Int64 alias long values 20090624011807P</guid></item><item><title>New Post: Injection of System.Int64 alias long values</title><link>http://unity.codeplex.com/Thread/View.aspx?ThreadId=60516</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You should specify the &amp;quot;type&amp;quot; attribute for the &amp;lt;value&amp;gt; element (type=&amp;quot;System.Int64&amp;quot;).&amp;nbsp; If you don't it assumes it is of type string even if you specify the parameterTye in the &amp;lt;param&amp;gt; element.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;br&gt;&lt;/em&gt;&lt;/strong&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;&lt;span style="color:#3e62a6"&gt;entlib.support@avanade.com&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Wed, 24 Jun 2009 13:03:56 GMT</pubDate><guid isPermaLink="false">New Post: Injection of System.Int64 alias long values 20090624010356P</guid></item></channel></rss>