<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>mvcextensions Issue Tracker Rss Feed</title><link>http://mvcextensions.codeplex.com/workitem/list/basic</link><description>mvcextensions Issue Tracker Rss Description</description><item><title>Closed Issue: ModelMetadataItem - invalid default values [20]</title><link>http://mvcextensions.codeplex.com/workitem/20</link><description>There some discrepancies between ModelMetadataItem &amp;#40;MvcExtensions&amp;#41; and ModelMetadata &amp;#40;built-in mvc class from System.Web.Mvc&amp;#41; default property values. That makes different behavior for models with MvcExtensions and DataAnnotations attributes.&lt;br /&gt;Here is a list of fields for ModelMetadataItem need to be set&amp;#58;&lt;br /&gt;public ModelMetadataItem&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;            ShowForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;            ShowForEdit &amp;#61; true&amp;#59;&lt;br /&gt;            ConvertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;            Order &amp;#61; 10000&amp;#59;&lt;br /&gt;            RequestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;            Validations &amp;#61; new List&amp;#60;IModelValidationMetadata&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            AdditionalSettings &amp;#61; new List&amp;#60;IModelMetadataAdditionalSetting&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If you take a look at ModelMetadata, you&amp;#39;ll see these values&amp;#58;&lt;br /&gt;&lt;br /&gt;private bool _convertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;private int _order &amp;#61; 10000&amp;#59;&lt;br /&gt;private bool _requestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForEdit &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&amp;#58; to reproduce the bug you create simple model&lt;br /&gt;class MyModel &lt;br /&gt;&amp;#123; &lt;br /&gt;   public string Field1 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;   public string Field2 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;public class MyModelModelConfiguration &amp;#58; ModelMetadataConfiguration&amp;#60;MyModel&amp;#62;&lt;br /&gt;&amp;#123;&lt;br /&gt;   Configure&amp;#40;model &amp;#61;&amp;#62; model.Field1&amp;#41;.DisplayName&amp;#40;&amp;#34;SomeName&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#47;&amp;#47; no any settings for Field2&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If user does not entered both fields, we&amp;#39;ll get a model with Field1 &amp;#61;&amp;#61; &amp;#34;&amp;#34; and Field2 &amp;#61;&amp;#61; null. &amp;#40;that&amp;#39;s bacause of ConvertEmptyStringToNull is false by default in MvcExtensions&amp;#41;&lt;br /&gt;</description><author>hazzik</author><pubDate>Sun, 18 Dec 2011 18:22:49 GMT</pubDate><guid isPermaLink="false">Closed Issue: ModelMetadataItem - invalid default values [20] 20111218062249P</guid></item><item><title>Commented Issue: ModelMetadataItem - invalid default values [20]</title><link>http://mvcextensions.codeplex.com/workitem/20</link><description>There some discrepancies between ModelMetadataItem &amp;#40;MvcExtensions&amp;#41; and ModelMetadata &amp;#40;built-in mvc class from System.Web.Mvc&amp;#41; default property values. That makes different behavior for models with MvcExtensions and DataAnnotations attributes.&lt;br /&gt;Here is a list of fields for ModelMetadataItem need to be set&amp;#58;&lt;br /&gt;public ModelMetadataItem&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;            ShowForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;            ShowForEdit &amp;#61; true&amp;#59;&lt;br /&gt;            ConvertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;            Order &amp;#61; 10000&amp;#59;&lt;br /&gt;            RequestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;            Validations &amp;#61; new List&amp;#60;IModelValidationMetadata&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            AdditionalSettings &amp;#61; new List&amp;#60;IModelMetadataAdditionalSetting&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If you take a look at ModelMetadata, you&amp;#39;ll see these values&amp;#58;&lt;br /&gt;&lt;br /&gt;private bool _convertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;private int _order &amp;#61; 10000&amp;#59;&lt;br /&gt;private bool _requestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForEdit &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&amp;#58; to reproduce the bug you create simple model&lt;br /&gt;class MyModel &lt;br /&gt;&amp;#123; &lt;br /&gt;   public string Field1 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;   public string Field2 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;public class MyModelModelConfiguration &amp;#58; ModelMetadataConfiguration&amp;#60;MyModel&amp;#62;&lt;br /&gt;&amp;#123;&lt;br /&gt;   Configure&amp;#40;model &amp;#61;&amp;#62; model.Field1&amp;#41;.DisplayName&amp;#40;&amp;#34;SomeName&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#47;&amp;#47; no any settings for Field2&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If user does not entered both fields, we&amp;#39;ll get a model with Field1 &amp;#61;&amp;#61; &amp;#34;&amp;#34; and Field2 &amp;#61;&amp;#61; null. &amp;#40;that&amp;#39;s bacause of ConvertEmptyStringToNull is false by default in MvcExtensions&amp;#41;&lt;br /&gt;Comments: fixed in 2.5&amp;#10;&amp;#10;ps&amp;#58; we have moved to github</description><author>hazzik</author><pubDate>Sun, 18 Dec 2011 18:22:41 GMT</pubDate><guid isPermaLink="false">Commented Issue: ModelMetadataItem - invalid default values [20] 20111218062241P</guid></item><item><title>Created Issue: ModelMetadataItem - invalid default values [20]</title><link>http://mvcextensions.codeplex.com/workitem/20</link><description>There some discrepancies between ModelMetadataItem &amp;#40;MvcExtensions&amp;#41; and ModelMetadata &amp;#40;built-in mvc class from System.Web.Mvc&amp;#41; default property values. That makes different behavior for models with MvcExtensions and DataAnnotations attributes.&lt;br /&gt;Here is a list of fields for ModelMetadataItem need to be set&amp;#58;&lt;br /&gt;public ModelMetadataItem&amp;#40;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;            ShowForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;            ShowForEdit &amp;#61; true&amp;#59;&lt;br /&gt;            ConvertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;            Order &amp;#61; 10000&amp;#59;&lt;br /&gt;            RequestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;            Validations &amp;#61; new List&amp;#60;IModelValidationMetadata&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            AdditionalSettings &amp;#61; new List&amp;#60;IModelMetadataAdditionalSetting&amp;#62;&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If you take a look at ModelMetadata, you&amp;#39;ll see these values&amp;#58;&lt;br /&gt;&lt;br /&gt;private bool _convertEmptyStringToNull &amp;#61; true&amp;#59;&lt;br /&gt;private int _order &amp;#61; 10000&amp;#59;&lt;br /&gt;private bool _requestValidationEnabled &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForDisplay &amp;#61; true&amp;#59;&lt;br /&gt;private bool _showForEdit &amp;#61; true&amp;#59;&lt;br /&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&amp;#58; to reproduce the bug you create simple model&lt;br /&gt;class MyModel &lt;br /&gt;&amp;#123; &lt;br /&gt;   public string Field1 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;   public string Field2 &amp;#123;get&amp;#59;set&amp;#59;&amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;public class MyModelModelConfiguration &amp;#58; ModelMetadataConfiguration&amp;#60;MyModel&amp;#62;&lt;br /&gt;&amp;#123;&lt;br /&gt;   Configure&amp;#40;model &amp;#61;&amp;#62; model.Field1&amp;#41;.DisplayName&amp;#40;&amp;#34;SomeName&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;  &amp;#47;&amp;#47; no any settings for Field2&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;If user does not entered both fields, we&amp;#39;ll get a model with Field1 &amp;#61;&amp;#61; &amp;#34;&amp;#34; and Field2 &amp;#61;&amp;#61; null. &amp;#40;that&amp;#39;s bacause of ConvertEmptyStringToNull is false by default in MvcExtensions&amp;#41;&lt;br /&gt;</description><author>AlexBar</author><pubDate>Sat, 17 Dec 2011 13:41:51 GMT</pubDate><guid isPermaLink="false">Created Issue: ModelMetadataItem - invalid default values [20] 20111217014151P</guid></item><item><title>Created Issue: Globally defined resource item for validation messages [19]</title><link>http://mvcextensions.codeplex.com/workitem/19</link><description>It would be cool to have a feature to set validation message globally like&amp;#58;&lt;br /&gt;&lt;br /&gt;ModelMetadataSetting.RequredErrorMessage &amp;#61; &amp;#40;&amp;#41; &amp;#61;&amp;#62; ResourceMessages.Requred&amp;#59; &amp;#47;&amp;#47; run at user&amp;#39;s bootstrapper task&lt;br /&gt;&lt;br /&gt;And then use it as &lt;br /&gt;...&lt;br /&gt;   Configure&amp;#40;s &amp;#61;&amp;#62; s.SomeField&amp;#41;.Required&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; global defined message will be used&amp;#59; user should be able to override the default message, of course.&lt;br /&gt;...&lt;br /&gt;</description><author>AlexBar</author><pubDate>Sat, 10 Dec 2011 19:49:52 GMT</pubDate><guid isPermaLink="false">Created Issue: Globally defined resource item for validation messages [19] 20111210074952P</guid></item><item><title>Edited Issue: Unable to use asynchronous controllers [8]</title><link>http://mvcextensions.codeplex.com/workitem/8</link><description>I just realized that I&amp;#39;m unable to use asynchronous controllers with MVC Extensions. The cause for this is the custom ExtendedControllerActionInvoker. I believe this needs to be changed to inherit from AsyncControllerActionInvoker. I&amp;#39;ve changed it myself locally and am testing it now.&lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 18:27:10 GMT</pubDate><guid isPermaLink="false">Edited Issue: Unable to use asynchronous controllers [8] 20111029062710P</guid></item><item><title>Commented Issue: Debugging Codeplex MVCExtensions in 4.0 throws exception [13]</title><link>http://mvcextensions.codeplex.com/workitem/13</link><description>download http&amp;#58;&amp;#47;&amp;#47;mvcextensions.codeplex.com&amp;#47;&lt;br /&gt;&lt;br /&gt;1.       On the same project as above. Start VS as admin&lt;br /&gt;&lt;br /&gt;2.       Open the solution&lt;br /&gt;&lt;br /&gt;3.       For project demo&amp;#92;demo.web.unity, make it IIS WAP and save&lt;br /&gt;&lt;br /&gt;4.       Rebuild the solution&lt;br /&gt;&lt;br /&gt;5.       Debug The demo.web.utility application by browsing to the root of the application&lt;br /&gt;&lt;br /&gt;6.    Do an iisreset and browse to the page again &lt;br /&gt;&lt;br /&gt; Actual&amp;#58;&lt;br /&gt;&lt;br /&gt;w3wp.exe throws exception, you can see function OnBeginRequest function get called repeatly and caused System.StackOverflowException.&lt;br /&gt;&lt;br /&gt;Comments: Cant&amp;#39; reproduce</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 18:25:29 GMT</pubDate><guid isPermaLink="false">Commented Issue: Debugging Codeplex MVCExtensions in 4.0 throws exception [13] 20111029062529P</guid></item><item><title>Edited Issue: Debugging Codeplex MVCExtensions in 4.0 throws exception [13]</title><link>http://mvcextensions.codeplex.com/workitem/13</link><description>download http&amp;#58;&amp;#47;&amp;#47;mvcextensions.codeplex.com&amp;#47;&lt;br /&gt;&lt;br /&gt;1.       On the same project as above. Start VS as admin&lt;br /&gt;&lt;br /&gt;2.       Open the solution&lt;br /&gt;&lt;br /&gt;3.       For project demo&amp;#92;demo.web.unity, make it IIS WAP and save&lt;br /&gt;&lt;br /&gt;4.       Rebuild the solution&lt;br /&gt;&lt;br /&gt;5.       Debug The demo.web.utility application by browsing to the root of the application&lt;br /&gt;&lt;br /&gt;6.    Do an iisreset and browse to the page again &lt;br /&gt;&lt;br /&gt; Actual&amp;#58;&lt;br /&gt;&lt;br /&gt;w3wp.exe throws exception, you can see function OnBeginRequest function get called repeatly and caused System.StackOverflowException.&lt;br /&gt;&lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 18:25:29 GMT</pubDate><guid isPermaLink="false">Edited Issue: Debugging Codeplex MVCExtensions in 4.0 throws exception [13] 20111029062529P</guid></item><item><title>Commented Issue: Cleanup() method throws an exception when using Autofac [18]</title><link>http://mvcextensions.codeplex.com/workitem/18</link><description>1. Reproduced on latest version 4f50ae05c0d6&lt;br /&gt;2. When MvcExtensions.Bootstrapper.Cleanup&amp;#40;&amp;#41; is executed, it throws an exception &lt;br /&gt;&lt;br /&gt;System.NullReferenceException&amp;#58; Object reference not set to an instance of an object.&lt;br /&gt;   at MvcExtensions.Bootstrapper.Cleanup&amp;#91;TTask&amp;#93;&amp;#40;IEnumerable&amp;#96;1 tasks&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 191&lt;br /&gt;   at MvcExtensions.Bootstrapper.DisposeBootstrapperTasks&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 112&lt;br /&gt;   at MvcExtensions.ExtendedMvcApplication.Application_End&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;ExtendedMvcApplication.cs&amp;#58;line 84&lt;br /&gt;&lt;br /&gt;The root cause of this exception is in RequestLifetimeScopeProvider implemention. It resolves HttpContextBase from container, but at the moment when Cleanup&amp;#40;&amp;#41; method is called, HttpContext.Current &amp;#61;&amp;#61; null and we&amp;#39;ll get such error.&lt;br /&gt;&lt;br /&gt;HttpContextBase is registered as&amp;#58;&lt;br /&gt;builder.Register&amp;#40;c &amp;#61;&amp;#62; new HttpContextWrapper&amp;#40;HttpContext.Current&amp;#41;&amp;#41;.As&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.InstancePerDependency&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;PS why didn&amp;#39;t you use Autofac implementetion of RequestLifetimeScopeProvider &amp;#40;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;autofac&amp;#47;source&amp;#47;browse&amp;#47;src&amp;#47;Source&amp;#47;Autofac.Integration.Mvc&amp;#47;RequestLifetimeScopeProvider.cs&amp;#41;&amp;#63; It would be useful to use default implementation especially if I&amp;#39;m trying to intergete MvcExtention with existing project that already uses Autofac.Mvc features.  I&amp;#39;m going to use only ModelMetadate feature. &lt;br /&gt;&lt;br /&gt;Comments: Resolved in 2.0.1.520</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 17:53:21 GMT</pubDate><guid isPermaLink="false">Commented Issue: Cleanup() method throws an exception when using Autofac [18] 20111029055321P</guid></item><item><title>Edited Issue: Cleanup() method throws an exception when using Autofac [18]</title><link>http://mvcextensions.codeplex.com/workitem/18</link><description>1. Reproduced on latest version 4f50ae05c0d6&lt;br /&gt;2. When MvcExtensions.Bootstrapper.Cleanup&amp;#40;&amp;#41; is executed, it throws an exception &lt;br /&gt;&lt;br /&gt;System.NullReferenceException&amp;#58; Object reference not set to an instance of an object.&lt;br /&gt;   at MvcExtensions.Bootstrapper.Cleanup&amp;#91;TTask&amp;#93;&amp;#40;IEnumerable&amp;#96;1 tasks&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 191&lt;br /&gt;   at MvcExtensions.Bootstrapper.DisposeBootstrapperTasks&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 112&lt;br /&gt;   at MvcExtensions.ExtendedMvcApplication.Application_End&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;ExtendedMvcApplication.cs&amp;#58;line 84&lt;br /&gt;&lt;br /&gt;The root cause of this exception is in RequestLifetimeScopeProvider implemention. It resolves HttpContextBase from container, but at the moment when Cleanup&amp;#40;&amp;#41; method is called, HttpContext.Current &amp;#61;&amp;#61; null and we&amp;#39;ll get such error.&lt;br /&gt;&lt;br /&gt;HttpContextBase is registered as&amp;#58;&lt;br /&gt;builder.Register&amp;#40;c &amp;#61;&amp;#62; new HttpContextWrapper&amp;#40;HttpContext.Current&amp;#41;&amp;#41;.As&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.InstancePerDependency&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;PS why didn&amp;#39;t you use Autofac implementetion of RequestLifetimeScopeProvider &amp;#40;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;autofac&amp;#47;source&amp;#47;browse&amp;#47;src&amp;#47;Source&amp;#47;Autofac.Integration.Mvc&amp;#47;RequestLifetimeScopeProvider.cs&amp;#41;&amp;#63; It would be useful to use default implementation especially if I&amp;#39;m trying to intergete MvcExtention with existing project that already uses Autofac.Mvc features.  I&amp;#39;m going to use only ModelMetadate feature. &lt;br /&gt;&lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 17:53:21 GMT</pubDate><guid isPermaLink="false">Edited Issue: Cleanup() method throws an exception when using Autofac [18] 20111029055321P</guid></item><item><title>Edited Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 16:18:02 GMT</pubDate><guid isPermaLink="false">Edited Issue: error: no parameterless constructor [17] 20111029041802P</guid></item><item><title>Reopened Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 16:17:51 GMT</pubDate><guid isPermaLink="false">Reopened Issue: error: no parameterless constructor [17] 20111029041751P</guid></item><item><title>Closed Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 16:17:47 GMT</pubDate><guid isPermaLink="false">Closed Issue: error: no parameterless constructor [17] 20111029041747P</guid></item><item><title>Commented Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;Comments: Should be resolved in 2.0.1.520.&amp;#13;&amp;#10;Now inner container throws exception, if component is registered, but can not be resolved properly.</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 16:17:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: error: no parameterless constructor [17] 20111029041736P</guid></item><item><title>Edited Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;</description><author>hazzik</author><pubDate>Sat, 29 Oct 2011 16:17:36 GMT</pubDate><guid isPermaLink="false">Edited Issue: error: no parameterless constructor [17] 20111029041736P</guid></item><item><title>Commented Issue: Cleanup() method throws an exception when using Autofac [18]</title><link>http://mvcextensions.codeplex.com/workitem/18</link><description>1. Reproduced on latest version 4f50ae05c0d6&lt;br /&gt;2. When MvcExtensions.Bootstrapper.Cleanup&amp;#40;&amp;#41; is executed, it throws an exception &lt;br /&gt;&lt;br /&gt;System.NullReferenceException&amp;#58; Object reference not set to an instance of an object.&lt;br /&gt;   at MvcExtensions.Bootstrapper.Cleanup&amp;#91;TTask&amp;#93;&amp;#40;IEnumerable&amp;#96;1 tasks&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 191&lt;br /&gt;   at MvcExtensions.Bootstrapper.DisposeBootstrapperTasks&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 112&lt;br /&gt;   at MvcExtensions.ExtendedMvcApplication.Application_End&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;ExtendedMvcApplication.cs&amp;#58;line 84&lt;br /&gt;&lt;br /&gt;The root cause of this exception is in RequestLifetimeScopeProvider implemention. It resolves HttpContextBase from container, but at the moment when Cleanup&amp;#40;&amp;#41; method is called, HttpContext.Current &amp;#61;&amp;#61; null and we&amp;#39;ll get such error.&lt;br /&gt;&lt;br /&gt;HttpContextBase is registered as&amp;#58;&lt;br /&gt;builder.Register&amp;#40;c &amp;#61;&amp;#62; new HttpContextWrapper&amp;#40;HttpContext.Current&amp;#41;&amp;#41;.As&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.InstancePerDependency&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;PS why didn&amp;#39;t you use Autofac implementetion of RequestLifetimeScopeProvider &amp;#40;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;autofac&amp;#47;source&amp;#47;browse&amp;#47;src&amp;#47;Source&amp;#47;Autofac.Integration.Mvc&amp;#47;RequestLifetimeScopeProvider.cs&amp;#41;&amp;#63; It would be useful to use default implementation especially if I&amp;#39;m trying to intergete MvcExtention with existing project that already uses Autofac.Mvc features.  I&amp;#39;m going to use only ModelMetadate feature. &lt;br /&gt;&lt;br /&gt;Comments: Solution&amp;#58;&amp;#10;Change&amp;#10;&amp;#10; private ILifetimeScope LifetimeScope&amp;#10; &amp;#123;&amp;#10;            get &amp;#123; return &amp;#40;ILifetimeScope&amp;#41;container.Resolve&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.Items&amp;#91;lifettymeScopeType&amp;#93;&amp;#59; &amp;#125;&amp;#10;            set &amp;#123; container.Resolve&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.Items&amp;#91;lifettymeScopeType&amp;#93; &amp;#61; value&amp;#59; &amp;#125;&amp;#10; &amp;#125;&amp;#10;&amp;#10;with&amp;#10;&amp;#10;private ILifetimeScope LifetimeScope&amp;#10;&amp;#123;&amp;#10;            get &amp;#123; return &amp;#40;ILifetimeScope&amp;#41;HttpContext.Current.Items&amp;#91;lifettymeScopeType&amp;#93;&amp;#59; &amp;#125;&amp;#10;            set &amp;#123; HttpContext.Current.Items&amp;#91;lifettymeScopeType&amp;#93; &amp;#61; value&amp;#59; &amp;#125;&amp;#10;&amp;#125;&amp;#10;&amp;#10;It solves the problem. &amp;#43; builder.Register&amp;#40;c &amp;#61;&amp;#62; new HttpContextWrapper&amp;#40;HttpContext.Curr&amp;#8203;ent&amp;#41;&amp;#41;.As&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.Instanc&amp;#8203;ePerDependency&amp;#40;&amp;#41;&amp;#59; can and should be removed. Let user to register it himself.&amp;#10;&amp;#10;&amp;#10;Change tests&amp;#58;&amp;#10;&amp;#10;public class AutofacAdapterTests&amp;#10;    &amp;#123;&amp;#10;        private readonly AutofacAdapter adapter&amp;#59;&amp;#10;&amp;#10;        public AutofacAdapterTests&amp;#40;&amp;#41;&amp;#10;        &amp;#123;&amp;#10;            HttpContext.Current &amp;#61; new HttpContext&amp;#40;new HttpRequest&amp;#40;&amp;#34;&amp;#34;, &amp;#34;http&amp;#58;&amp;#47;&amp;#47;tempuri.org&amp;#34;, &amp;#34;&amp;#34;&amp;#41;, new HttpResponse&amp;#40;new StringWriter&amp;#40;&amp;#41;&amp;#41;&amp;#41;&amp;#59;&amp;#10;&amp;#10;            var httpContextMock &amp;#61; new Mock&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;&amp;#59;&amp;#10;            httpContextMock.Setup&amp;#40;x &amp;#61;&amp;#62; x.Items&amp;#41;.Returns&amp;#40;new Hashtable&amp;#40;&amp;#41;&amp;#41;&amp;#59;&amp;#10;            var builder &amp;#61; new ContainerBuilder&amp;#40;&amp;#41;&amp;#59;&amp;#10;            adapter &amp;#61; new AutofacAdapter&amp;#40;builder.Build&amp;#40;&amp;#41;&amp;#41;&amp;#59;&amp;#10;        &amp;#125;&amp;#10;...</description><author>AlexBar</author><pubDate>Sat, 29 Oct 2011 15:07:25 GMT</pubDate><guid isPermaLink="false">Commented Issue: Cleanup() method throws an exception when using Autofac [18] 20111029030725P</guid></item><item><title>Created Issue: Cleanup() method throws an exception when using Autofac [18]</title><link>http://mvcextensions.codeplex.com/workitem/18</link><description>1. Reproduced on latest version 4f50ae05c0d6&lt;br /&gt;2. When MvcExtensions.Bootstrapper.Cleanup&amp;#40;&amp;#41; is executed, it throws an exception &lt;br /&gt;&lt;br /&gt;System.NullReferenceException&amp;#58; Object reference not set to an instance of an object.&lt;br /&gt;   at MvcExtensions.Bootstrapper.Cleanup&amp;#91;TTask&amp;#93;&amp;#40;IEnumerable&amp;#96;1 tasks&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 191&lt;br /&gt;   at MvcExtensions.Bootstrapper.DisposeBootstrapperTasks&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;Bootstrapper&amp;#92;Bootstrapper.cs&amp;#58;line 112&lt;br /&gt;   at MvcExtensions.ExtendedMvcApplication.Application_End&amp;#40;&amp;#41; in d&amp;#58;&amp;#92;BuildAgent-02&amp;#92;work&amp;#92;79d4d30b62db7cc8&amp;#92;Trunk&amp;#92;MvcExtensions&amp;#92;ExtendedMvcApplication.cs&amp;#58;line 84&lt;br /&gt;&lt;br /&gt;The root cause of this exception is in RequestLifetimeScopeProvider implemention. It resolves HttpContextBase from container, but at the moment when Cleanup&amp;#40;&amp;#41; method is called, HttpContext.Current &amp;#61;&amp;#61; null and we&amp;#39;ll get such error.&lt;br /&gt;&lt;br /&gt;HttpContextBase is registered as&amp;#58;&lt;br /&gt;builder.Register&amp;#40;c &amp;#61;&amp;#62; new HttpContextWrapper&amp;#40;HttpContext.Current&amp;#41;&amp;#41;.As&amp;#60;HttpContextBase&amp;#62;&amp;#40;&amp;#41;.InstancePerDependency&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;PS why didn&amp;#39;t you use Autofac implementetion of RequestLifetimeScopeProvider &amp;#40;http&amp;#58;&amp;#47;&amp;#47;code.google.com&amp;#47;p&amp;#47;autofac&amp;#47;source&amp;#47;browse&amp;#47;src&amp;#47;Source&amp;#47;Autofac.Integration.Mvc&amp;#47;RequestLifetimeScopeProvider.cs&amp;#41;&amp;#63; It would be useful to use default implementation especially if I&amp;#39;m trying to intergete MvcExtention with existing project that already uses Autofac.Mvc features.  I&amp;#39;m going to use only ModelMetadate feature. &lt;br /&gt;&lt;br /&gt;</description><author>AlexBar</author><pubDate>Sat, 29 Oct 2011 14:37:12 GMT</pubDate><guid isPermaLink="false">Created Issue: Cleanup() method throws an exception when using Autofac [18] 20111029023712P</guid></item><item><title>Edited Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. &lt;br /&gt;</description><author>hazzik</author><pubDate>Mon, 26 Sep 2011 05:05:50 GMT</pubDate><guid isPermaLink="false">Edited Issue: error: no parameterless constructor [17] 20110926050550A</guid></item><item><title>Created Issue: error: no parameterless constructor [17]</title><link>http://mvcextensions.codeplex.com/workitem/17</link><description>MvcExtensions trying to create controller with activator if it cannot be created with ioc container. I gues somthing wrong with lifetime of one or more component on which controller depends.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve added debug information for situation when container throws exception on type resolution. please check this http&amp;#58;&amp;#47;&amp;#47;mvcextensions.codeplex.com&amp;#47;SourceControl&amp;#47;changeset&amp;#47;changes&amp;#47;bea5a08df651&lt;br /&gt;</description><author>hazzik</author><pubDate>Mon, 26 Sep 2011 05:05:22 GMT</pubDate><guid isPermaLink="false">Created Issue: error: no parameterless constructor [17] 20110926050522A</guid></item><item><title>Reopened Issue: ModelMetadataConfiguration Typed AsDropDownList [6]</title><link>http://mvcextensions.codeplex.com/workitem/6</link><description>The extension AsDropDownList could have an typed version, so this way I don&amp;#39;t need to use the viewData.&lt;br /&gt;</description><author>hazzik</author><pubDate>Mon, 01 Aug 2011 17:08:19 GMT</pubDate><guid isPermaLink="false">Reopened Issue: ModelMetadataConfiguration Typed AsDropDownList [6] 20110801050819P</guid></item><item><title>Closed Issue: Assembly version for RTM and SP1 Preview is same at 1.0.0.0 [4]</title><link>http://mvcextensions.codeplex.com/workitem/4</link><description>Unless this is intentional for some reason&lt;br /&gt;</description><author>hazzik</author><pubDate>Mon, 01 Aug 2011 11:00:17 GMT</pubDate><guid isPermaLink="false">Closed Issue: Assembly version for RTM and SP1 Preview is same at 1.0.0.0 [4] 20110801110017A</guid></item></channel></rss>