<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>mvcextensions Discussions Rss Feed</title><link>http://mvcextensions.codeplex.com/Thread/List.aspx</link><description>mvcextensions Discussions Rss Description</description><item><title>New Post: PerRequestTask - where is context?</title><link>http://mvcextensions.codeplex.com/discussions/393747</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;a href="http://weblogs.asp.net/rashid/archive/2010/05/19/mvcextensions-perrequesttask.aspx"&gt;This article&lt;/a&gt; describes how to create per request task. However it's already over 2 years old, new interface (Execute() vs ExecuteCore(PerRequestExecutionContext
 context) has been implemented and, most notably, 'context' parameter is missing. Is there another way to access it? I need to close RavenDb session in it and I can't figure out how to access it. Is there a way to access the container? I'm using StructureMap
 version of MvcExtensions. BTW, I'm really liking the library and would like to use all its features. Please update documentation if you release new version. I'll be happy to contribute with documentation if I understand what's going on.&lt;/p&gt;
&lt;/div&gt;</description><author>Sotorin2</author><pubDate>Thu, 30 Aug 2012 13:25:21 GMT</pubDate><guid isPermaLink="false">New Post: PerRequestTask - where is context? 20120830012521P</guid></item><item><title>New Post: Areas not displaying in MVC 4 using MvcExtensions</title><link>http://mvcextensions.codeplex.com/discussions/389368</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I posted a question on Stack Overflow regarding MvcExtensions in an ASP.NET MVC4 app.&amp;nbsp; Could you please go and look at:
&lt;a href="http://stackoverflow.com/questions/11687840/areas-not-displaying-in-mvc-4-using-mvcextensions"&gt;
http://stackoverflow.com/questions/11687840/areas-not-displaying-in-mvc-4-using-mvcextensions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
Brendan&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Sat, 28 Jul 2012 10:44:51 GMT</pubDate><guid isPermaLink="false">New Post: Areas not displaying in MVC 4 using MvcExtensions 20120728104451A</guid></item><item><title>New Post: Automapper asking for MVC3 reference in a MVC4 app with MvcExtensions</title><link>http://mvcextensions.codeplex.com/discussions/389367</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I posted a question on Stack Overflow regarding MvcExtensions in an ASP.NET MVC4 app.&amp;nbsp; Could you please go and look at:
&lt;a href="http://stackoverflow.com/questions/11687920/automapper-asking-for-mvc3-reference-in-a-mvc4-app-with-mvcextensions"&gt;
http://stackoverflow.com/questions/11687920/automapper-asking-for-mvc3-reference-in-a-mvc4-app-with-mvcextensions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
Brendan&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Sat, 28 Jul 2012 10:39:40 GMT</pubDate><guid isPermaLink="false">New Post: Automapper asking for MVC3 reference in a MVC4 app with MvcExtensions 20120728103940A</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;VS 11.0.50214.1 betarel; AspNetMvc 4.0.10906.0; CommonServiceLocator 1.0; Unity 2.1.505.0; MvcExtensions 2.5.0-rc8005 pre; MvcExtensions.Unity 2.5.0-rc8005 pre&lt;/p&gt;
&lt;p&gt;all installed without errors from package console.&lt;/p&gt;&lt;/div&gt;</description><author>SpaceMarine</author><pubDate>Tue, 29 May 2012 10:09:46 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120529100946A</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;SpaceMarine, which versions exactly are you using?&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>hazzik</author><pubDate>Tue, 29 May 2012 09:19:52 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120529091952A</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks! But... I have a error in my mvc4 application.&lt;/p&gt;
&lt;p&gt;System.NullReferenceException was unhandled by user code&lt;br /&gt;&amp;nbsp; HResult=-2147467261&lt;br /&gt;&amp;nbsp; Message=Object reference not set to an instance of an object.&lt;br /&gt;&amp;nbsp; Source=MvcExtensions&lt;br /&gt;&amp;nbsp; StackTrace:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MvcExtensions.Bootstrapper.Execute[TTask](IEnumerable`1 tasks) in d:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\Bootstrapper\Bootstrapper.cs:line 176&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MvcExtensions.Bootstrapper.ExecuteBootstrapperTasks() in d:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\Bootstrapper\Bootstrapper.cs:line 104&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at MvcExtensions.ExtendedMvcApplication.Application_Start() in d:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\ExtendedMvcApplication.cs:line 75&lt;br /&gt;&amp;nbsp; Call stack location: MvcExtensions.dll!MvcExtensions.ExtendedMvcApplication.Application_Start() Line 76&lt;/p&gt;
&lt;p&gt;The file 'd:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\ExtendedMvcApplication.cs' does not exist.&lt;br /&gt;Looking in script documents for 'd:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\ExtendedMvcApplication.cs'...&lt;br /&gt;Looking in the projects for 'd:\BuildAgent-02\work\5dc85169f18b1630\src\MvcExtensions\ExtendedMvcApplication.cs'.&lt;br /&gt;The file was not found in a project.&lt;/p&gt;
&lt;p&gt;My code:&lt;/p&gt;
&lt;p&gt;public class MvcApplication : UnityMvcApplication&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; public MvcApplication()&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; Bootstrapper.BootstrapperTasks&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Include&amp;lt;RegisterModelMetadata&amp;gt;()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Include&amp;lt;RegisterControllers&amp;gt;()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Include&amp;lt;RegisterRoutes&amp;gt;()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Include&amp;lt;RegisterActionInvokers&amp;gt;();&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; public class RegisterRoutes : RegisterRoutesBase&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; public RegisterRoutes(RouteCollection routes)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : base(routes)&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;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;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override void Register()&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;br /&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; Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Routes.MapRoute(&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Default", &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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "{controller}/{action}/{id}", // URL with parameters&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new { controller = "Home", action = "Index", id = UrlParameter.Optional } &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;&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;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p&gt;public class RegisterServices : IModule&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; public void Load(IUnityContainer container)&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; container.RegisterType&amp;lt;IMyService, IMyService&amp;gt;(new PerRequestLifetimeManager());&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; }&lt;/p&gt;
&lt;p&gt;Packages installed: Microsoft.Practices.ServiceLocation, Microsoft.Practices.Unity, MvcExtensions, MvcExtensions.Unity.&lt;/p&gt;&lt;/div&gt;</description><author>SpaceMarine</author><pubDate>Tue, 29 May 2012 08:32:12 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120529083212A</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Also we had moved source code for version 2.5 to github http://mvcextensions.github.com&lt;/p&gt;
&lt;/div&gt;</description><author>hazzik</author><pubDate>Mon, 28 May 2012 19:48:00 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120528074800P</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi, using Unity almost the same as Windsor.&lt;/p&gt;
&lt;p&gt;1. Download package from nuget (or you could download release as zip archive):&lt;/p&gt;
&lt;p&gt;install-package MvcExtensions.Unity&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Inherit your application from MvcExtensions.Unity.UnityMvcApplication&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mvcextensions.codeplex.com/SourceControl/changeset/view/e5699e89a5e4#Trunk%2fSample%2fDemo.Web.Unity%2fGlobal.asax.cs"&gt;http://mvcextensions.codeplex.com/SourceControl/changeset/view/e5699e89a5e4#Trunk%2fSample%2fDemo.Web.Unity%2fGlobal.asax.cs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3. Register your services in modules (IModule)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://mvcextensions.codeplex.com/SourceControl/changeset/view/e5699e89a5e4#Trunk%2fSample%2fDemo.Web.Unity%2fInfrastructure%2fRegisterServices.cs"&gt;http://mvcextensions.codeplex.com/SourceControl/changeset/view/e5699e89a5e4#Trunk%2fSample%2fDemo.Web.Unity%2fInfrastructure%2fRegisterServices.cs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Aslo examples for each popular IoC container are located in 'Samples' directory in the source control.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;gt;&lt;span&gt;Do you plan to stop producing or make new commercial product on this basis?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;No and no. Now we are developing version 2.5 which is focused on easily extension of fluent metadata and validation enchancements. Also in plans support for native MVC IoC adapters (such as Ninject.Mvc3, Autofac.Web.Mvc, Unity.Mvc3, etc) and possible support of WebActivator.&lt;/p&gt;&lt;/div&gt;</description><author>hazzik</author><pubDate>Mon, 28 May 2012 19:46:39 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120528074639P</guid></item><item><title>New Post: MvcExtensions with Unity</title><link>http://mvcextensions.codeplex.com/discussions/357401</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Good day, hazzik! Could you post a example of using Unity with MvcExtensions, please. Or do you still recommend Windsor? Do you plan to stop producing or make new commercial product on this basis?&lt;/p&gt;
&lt;/div&gt;</description><author>SpaceMarine</author><pubDate>Mon, 28 May 2012 16:43:46 GMT</pubDate><guid isPermaLink="false">New Post: MvcExtensions with Unity 20120528044346P</guid></item><item><title>New Post: Order of preference in registering bootstrapper tasks?</title><link>http://mvcextensions.codeplex.com/discussions/356930</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;For your custom tasks you can use DependsOnAttribute:&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;[DependsOn( &lt;span style="color: blue;"&gt;typeof&lt;/span&gt; (RegisterAreas) )]
&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; RegisterRoutesTask : BootstrapperTask {
&lt;span style="color: green;"&gt;// code&lt;/span&gt;
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;&lt;/div&gt;</description><author>hazzik</author><pubDate>Fri, 25 May 2012 06:51:33 GMT</pubDate><guid isPermaLink="false">New Post: Order of preference in registering bootstrapper tasks? 20120525065133A</guid></item><item><title>New Post: Order of preference in registering bootstrapper tasks?</title><link>http://mvcextensions.codeplex.com/discussions/356930</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Can I put them in any order?&amp;nbsp; Will the bootstrapper know which to load first, for example areas before routes.&amp;nbsp; Or doesn't it really matter?&lt;/p&gt;&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 16:48:28 GMT</pubDate><guid isPermaLink="false">New Post: Order of preference in registering bootstrapper tasks? 20120524044828P</guid></item><item><title>New Post: Order of preference in registering bootstrapper tasks?</title><link>http://mvcextensions.codeplex.com/discussions/356930</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;All required tasks should be registered automatically.&lt;/p&gt;&lt;/div&gt;</description><author>hazzik</author><pubDate>Thu, 24 May 2012 10:35:38 GMT</pubDate><guid isPermaLink="false">New Post: Order of preference in registering bootstrapper tasks? 20120524103538A</guid></item><item><title>New Post: Registering the global filters</title><link>http://mvcextensions.codeplex.com/discussions/356933</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;The following code comes default with the global.asax.cs when you create a new ASP.NET MVC3 project:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; RegisterGlobalFilters(GlobalFilterCollection filters)
{
     filters.Add(&lt;span style="color:blue"&gt;new&lt;/span&gt; HandleErrorAttribute());
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I would like to create a bootstrapper task for this.&amp;nbsp; Is there an already built in task for this or do I need to go and create a custom taks for this, if custom, what does my method have to inherit from?&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 07:04:33 GMT</pubDate><guid isPermaLink="false">New Post: Registering the global filters 20120524070433A</guid></item><item><title>New Post: What is your opinion on using MVCExtensions with Autofac?</title><link>http://mvcextensions.codeplex.com/discussions/356932</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I would like to know your opinion on using MVCExtensions with Autofac..&lt;/p&gt;
&lt;p&gt;I am using MVC Extensions with Autofac in my MVC 3 web app. I'm just not getting it why these extensions were created? I can't really say that it is makng my life easier. Everything that I did with Autofac in my global.asax.cs file I can do with the MVC
 extensions. I can register routes, controllers, my services and repositories, etc with just Autofac.&lt;/p&gt;
&lt;p&gt;Any opinions why using these MVC extensions is maybe a better way to go?&lt;/p&gt;
&lt;p&gt;I need to capture my errors in Application_Error. How do I get an instance of my registered logger? If I need to resolve dependencies some where else in my app how would I do this? This is how I register my logger:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;builder.RegisterType&amp;lt;Logger&amp;gt;().As&amp;lt;ILogger&amp;gt;();
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I can instantiate my logger but would rather like to use the registered logger.&lt;/p&gt;
&lt;p&gt;Is there a tag for these extensions?&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 06:58:23 GMT</pubDate><guid isPermaLink="false">New Post: What is your opinion on using MVCExtensions with Autofac? 20120524065823A</guid></item><item><title>New Post: Order of preference in registering bootstrapper tasks?</title><link>http://mvcextensions.codeplex.com/discussions/356931</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;When registering bootstrapper tasks, is there any specific order in which they need to occur?&amp;nbsp; A before B and B before C etc?&amp;nbsp; I only have this at the moment:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; MvcApplication : AutofacMvcApplication
{
     &lt;span style="color:blue"&gt;public&lt;/span&gt; MvcApplication()
     {
          Bootstrapper.BootstrapperTasks
               .Include&amp;lt;RegisterAreas&amp;gt;()
               .Include&amp;lt;RegisterControllers&amp;gt;()
               .Include&amp;lt;RegisterRoutesBootstrapperTask&amp;gt;()
               .Include&amp;lt;AutoMapperBootstrapperTask&amp;gt;();
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;But there are many others like registering filters, view engines, views etc.&amp;nbsp; Is there any of these that are mandatory that have to be there by default?&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 06:54:13 GMT</pubDate><guid isPermaLink="false">New Post: Order of preference in registering bootstrapper tasks? 20120524065413A</guid></item><item><title>New Post: Order of preference in registering bootstrapper tasks?</title><link>http://mvcextensions.codeplex.com/discussions/356930</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;When registering bootstrapper tasks, is there any specific order in which they need to occur?&amp;nbsp; A before B and B before C etc?&amp;nbsp; I only have this at the moment:&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; MvcApplication : AutofacMvcApplication
{
     &lt;span style="color:blue"&gt;public&lt;/span&gt; MvcApplication()
     {
          Bootstrapper.BootstrapperTasks
               .Include&amp;lt;RegisterAreas&amp;gt;()
               .Include&amp;lt;RegisterControllers&amp;gt;()
               .Include&amp;lt;RegisterRoutesBootstrapperTask&amp;gt;()
               .Include&amp;lt;AutoMapperBootstrapperTask&amp;gt;();
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;But there are many others like registering filters, view engines, views etc.&amp;nbsp; Is there any of these that are mandatory that have to be there by default?&lt;/p&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 06:54:10 GMT</pubDate><guid isPermaLink="false">New Post: Order of preference in registering bootstrapper tasks? 20120524065410A</guid></item><item><title>New Post: MVC areas not diplaying when registering routes and areas with MVC extensions</title><link>http://mvcextensions.codeplex.com/discussions/356868</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I seem to have sorted out the problem.&amp;nbsp; The problem is with the Routes.Clear();&amp;nbsp; I took it out and now everything is working fine.&amp;nbsp; Here is my changes that I did to the code above:&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; RegisterRoutesBootstrapperTask : RegisterRoutesBase
{
     &lt;span style="color: blue;"&gt;public&lt;/span&gt; RegisterRoutesBootstrapperTask(RouteCollection routes)
          : &lt;span style="color: blue;"&gt;base&lt;/span&gt;(routes)
     {
     }
     &lt;span style="color: blue;"&gt;protected&lt;/span&gt; &lt;span style="color: blue;"&gt;override&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; Register()
     {
          Routes.IgnoreRoute(&lt;span style="color: #a31515;"&gt;"{resource}.axd/{*pathInfo}"&lt;/span&gt;);
          Routes.MapRoute(
               &lt;span style="color: #a31515;"&gt;"Default"&lt;/span&gt;,
               &lt;span style="color: #a31515;"&gt;"{controller}/{action}/{id}"&lt;/span&gt;,
               &lt;span style="color: blue;"&gt;new&lt;/span&gt; { controller = &lt;span style="color: #a31515;"&gt;"Home"&lt;/span&gt;, action = &lt;span style="color: #a31515;"&gt;"Index"&lt;/span&gt;, id = UrlParameter.Optional }
          );
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;Here is my updated global.asax.cs:&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt; &lt;span style="color: blue;"&gt;class&lt;/span&gt; MvcApplication : AutofacMvcApplication
{
     &lt;span style="color: blue;"&gt;public&lt;/span&gt; MvcApplication()
     {
          Bootstrapper.BootstrapperTasks
               .Include&amp;lt;RegisterAreas&amp;gt;()
               .Include&amp;lt;RegisterControllers&amp;gt;()
               .Include&amp;lt;RegisterRoutesBootstrapperTask&amp;gt;()
               .Include&amp;lt;AutoMapperBootstrapperTask&amp;gt;();
     }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Thu, 24 May 2012 06:45:10 GMT</pubDate><guid isPermaLink="false">New Post: MVC areas not diplaying when registering routes and areas with MVC extensions 20120524064510A</guid></item><item><title>New Post: MVC areas not diplaying when registering routes and areas with MVC extensions</title><link>http://mvcextensions.codeplex.com/discussions/356868</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,  add&lt;/p&gt;
&lt;pre&gt; AreaRegistration.RegisterAllAreas(); &lt;/pre&gt;
&lt;p&gt;To RegisterRoutesBootstrapperTask&lt;/p&gt;&lt;/div&gt;</description><author>hazzik</author><pubDate>Wed, 23 May 2012 20:15:26 GMT</pubDate><guid isPermaLink="false">New Post: MVC areas not diplaying when registering routes and areas with MVC extensions 20120523081526P</guid></item><item><title>New Post: MVC areas not diplaying when registering routes and areas with MVC extensions</title><link>http://mvcextensions.codeplex.com/discussions/356868</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Please excuse if this forums is not used, but I am in need of an answer and I do not know where to post it besides on Stack Overflow.&lt;/p&gt;
&lt;p&gt;I am using &lt;strong&gt;MVC Extension with Autofac&lt;/strong&gt; and I am having issues with my areas.&amp;nbsp; I'm not sure what I am doing wrong.&lt;br&gt;
&lt;br&gt;
Initially I had the following in my &lt;strong&gt;global.asax.cs&lt;/strong&gt;:&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; MvcApplication : AutofacMvcApplication
{
     &lt;span style="color:blue"&gt;public&lt;/span&gt; MvcApplication()
     {
          Bootstrapper.BootstrapperTasks
               .Include&amp;lt;RegisterControllers&amp;gt;();
     }
}&lt;/pre&gt;
&lt;/div&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;protected&lt;/span&gt; &lt;span style="color:blue"&gt;override&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; OnStart()
{
     AreaRegistration.RegisterAllAreas();
   
     RegisterGlobalFilters(GlobalFilters.Filters);
     RegisterRoutes(RouteTable.Routes);
   
     &lt;span style="color:blue"&gt;base&lt;/span&gt;.OnStart();
}
   
&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; RegisterGlobalFilters(GlobalFilterCollection filters)
{
    filters.Add(&lt;span style="color:blue"&gt;new&lt;/span&gt; HandleErrorAttribute());
}
   
&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute(&lt;span style="color:#a31515"&gt;&amp;quot;{resource}.axd/{*pathInfo}&amp;quot;&lt;/span&gt;);
   
    routes.MapRoute(
        &lt;span style="color:#a31515"&gt;&amp;quot;Default&amp;quot;&lt;/span&gt;,&lt;span style="color:green"&gt;&amp;nbsp;&lt;/span&gt;
        &lt;span style="color:#a31515"&gt;&amp;quot;{controller}/{action}/{id}&amp;quot;&lt;/span&gt;,
        &lt;span style="color:blue"&gt;new&lt;/span&gt; { controller = &lt;span style="color:#a31515"&gt;&amp;quot;Home&amp;quot;&lt;/span&gt;, action = &lt;span style="color:#a31515"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;, id = UrlParameter.Optional }
    );
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
With this code my areas displayed well.&amp;nbsp; http://localhost:19857/Administration displays my Index view.&lt;br&gt;
&lt;br&gt;
If I want MVC Extensions to register my routes and areas for me then http://localhost:19857/Administration displays nothing, just a 404 error.&lt;br&gt;
&lt;br&gt;
This is the updated global.asax.cs to register my routes and areas:&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; MvcApplication : AutofacMvcApplication
{
     &lt;span style="color:blue"&gt;public&lt;/span&gt; MvcApplication()
     {
          Bootstrapper.BootstrapperTasks
               .Include&amp;lt;RegisterAreas&amp;gt;()
               .Include&amp;lt;RegisterControllers&amp;gt;()
               .Include&amp;lt;RegisterRoutesBootstrapperTask&amp;gt;();
     }
   
     &lt;span style="color:blue"&gt;protected&lt;/span&gt; &lt;span style="color:blue"&gt;override&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; OnStart()
     {
          RegisterGlobalFilters(GlobalFilters.Filters);
   
          &lt;span style="color:blue"&gt;base&lt;/span&gt;.OnStart();
     }
   
     &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; RegisterGlobalFilters(GlobalFilterCollection filters)
     {
          filters.Add(&lt;span style="color:blue"&gt;new&lt;/span&gt; HandleErrorAttribute());
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
My &lt;strong&gt;RegisterRoutesBootstrapperTask class&lt;/strong&gt;:&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;class&lt;/span&gt; RegisterRoutesBootstrapperTask : RegisterRoutesBase
{
     &lt;span style="color:blue"&gt;public&lt;/span&gt; RegisterRoutesBootstrapperTask(RouteCollection routes)
          : &lt;span style="color:blue"&gt;base&lt;/span&gt;(routes)
     {
     }
   
     &lt;span style="color:blue"&gt;protected&lt;/span&gt; &lt;span style="color:blue"&gt;override&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; Register()
     {
          Routes.Clear();
   
          Routes.IgnoreRoute(&lt;span style="color:#a31515"&gt;&amp;quot;{resource}.axd/{*pathInfo}&amp;quot;&lt;/span&gt;);
   
          Routes.MapRoute(
               &lt;span style="color:#a31515"&gt;&amp;quot;Default&amp;quot;&lt;/span&gt;,
               &lt;span style="color:#a31515"&gt;&amp;quot;{controller}/{action}/{id}&amp;quot;&lt;/span&gt;,
               &lt;span style="color:blue"&gt;new&lt;/span&gt; { controller = &lt;span style="color:#a31515"&gt;&amp;quot;Home&amp;quot;&lt;/span&gt;, action = &lt;span style="color:#a31515"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;, id = UrlParameter.Optional } &lt;span style="color:green"&gt;// Parameter defaults&lt;/span&gt;
          );
     }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
Why won't my areas display?&lt;br&gt;
&lt;br&gt;
When I go to http://localhost:19857/Administration then it needs to default to the Dashboard controllers Index view.&amp;nbsp; Here is my area's registration code:&lt;br&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;override&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; AreaName
{
     &lt;span style="color:blue"&gt;get&lt;/span&gt;
     {
          &lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:#a31515"&gt;&amp;quot;Administration&amp;quot;&lt;/span&gt;;
     }
}
   
&lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;override&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; RegisterArea(AreaRegistrationContext context)
{
     context.MapRoute(
          &lt;span style="color:#a31515"&gt;&amp;quot;Administration_default&amp;quot;&lt;/span&gt;,
          &lt;span style="color:#a31515"&gt;&amp;quot;Administration/{controller}/{action}/{id}&amp;quot;&lt;/span&gt;,
          &lt;span style="color:blue"&gt;new&lt;/span&gt; { controller = &lt;span style="color:#a31515"&gt;&amp;quot;Dashboard&amp;quot;&lt;/span&gt;, action = &lt;span style="color:#a31515"&gt;&amp;quot;Index&amp;quot;&lt;/span&gt;, id = UrlParameter.Optional }
     );
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;</description><author>bioluminescence</author><pubDate>Wed, 23 May 2012 16:17:46 GMT</pubDate><guid isPermaLink="false">New Post: MVC areas not diplaying when registering routes and areas with MVC extensions 20120523041746P</guid></item><item><title>New Post: error: no parameterless constructor</title><link>http://mvcextensions.codeplex.com/discussions/262448</link><description>&lt;div style="line-height: normal;"&gt;This discussion has been copied to a work item. Click &lt;a href="http://mvcextensions.codeplex.com/workitem/17"&gt;here&lt;/a&gt; to go to the work item and continue the discussion.&lt;/div&gt;</description><author>hazzik</author><pubDate>Mon, 26 Sep 2011 05:05:22 GMT</pubDate><guid isPermaLink="false">New Post: error: no parameterless constructor 20110926050522A</guid></item></channel></rss>