title: Why Glimpse model binding tab is disabled?
body: <p>I'm using Glimpse MVC4 version 1.2.0.</p>
  
  <p>I notice that the "Model Binding" tab is disabled when I open the Glimpse UI in my browser. I can't see how to enable it. Reading the <a href="https://github.com/Glimpse/Glimpse/wiki/Configuration" rel="nofollow">Glimpse docs</a> reveals that you can ignore tabs</p>
  
  <pre><code>&lt;glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd"&gt;
      &lt;tabs&gt;
          &lt;ignoredTypes&gt;
              &lt;add type="{Namespace.Type, AssemblyName}"/&gt;
          &lt;/ignoredTypes&gt;
      &lt;/tabs&gt;
  &lt;/glimpse&gt;
  </code></pre>
  
  <p>But I have none of that in my web.config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="glimpse" type="Glimpse.Core.Configuration.Section, Glimpse.Core" /&gt;
    &lt;/configSections&gt;
    &lt;appSettings&gt;
      &lt;add key="webpages:Version" value="2.0.0.0" /&gt;
      &lt;add key="webpages:Enabled" value="false" /&gt;
      &lt;add key="PreserveLoginUrl" value="true" /&gt;
      &lt;add key="ClientValidationEnabled" value="true" /&gt;
      &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
    &lt;/appSettings&gt;
    &lt;system.web&gt;
      &lt;httpRuntime targetFramework="4.5" /&gt;
      &lt;compilation debug="true" targetFramework="4.5" /&gt;
      &lt;pages&gt;
        &lt;namespaces&gt;
          &lt;add namespace="System.Web.Helpers" /&gt;
          &lt;add namespace="System.Web.Mvc" /&gt;
          &lt;add namespace="System.Web.Mvc.Ajax" /&gt;
          &lt;add namespace="System.Web.Mvc.Html" /&gt;
          &lt;add namespace="System.Web.Routing" /&gt;
          &lt;add namespace="System.Web.WebPages" /&gt;
        &lt;/namespaces&gt;
      &lt;/pages&gt;
      &lt;!-- Glimpse: This can be commented in to add additional data to the Trace tab when using WebForms
          &lt;trace writeToDiagnosticsTrace="true" enabled="true" pageOutput="false"/&gt; --&gt;
      &lt;httpModules&gt;
        &lt;add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" /&gt;
      &lt;/httpModules&gt;
      &lt;httpHandlers&gt;
        &lt;add path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" /&gt;
      &lt;/httpHandlers&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt;
        &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt;
        &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt;
        &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt;
        &lt;add name="Glimpse" path="glimpse.axd" verb="GET" type="Glimpse.AspNet.HttpHandler, Glimpse.AspNet" preCondition="integratedMode" /&gt;
      &lt;/handlers&gt;
      &lt;validation validateIntegratedModeConfiguration="false" /&gt;
      &lt;modules&gt;
        &lt;add name="Glimpse" type="Glimpse.AspNet.HttpModule, Glimpse.AspNet" preCondition="integratedMode" /&gt;
      &lt;/modules&gt;
    &lt;/system.webServer&gt;
    &lt;runtime&gt;
      &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
        &lt;dependentAssembly&gt;
          &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
          &lt;bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /&gt;
        &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
    &lt;/runtime&gt;
    &lt;glimpse defaultRuntimePolicy="On" endpointBaseUri="~/Glimpse.axd"&gt;
      &lt;!-- If you are having issues with Glimpse, please include this. It will help us figure out whats going on.
        &lt;logging level="Trace" /&gt; --&gt;
    &lt;/glimpse&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>All the other tabs are enabled. Could someone suggest a reason why this tab is disabled?</p>
  
  <p>EDIT: I notice that the "Session" tab is also disabled.</p>
  
  <p>Ah OK, after I added a <code>Session["Testing"] = "123"</code> call, the "Session" tab is now enabled. Still can't get the "Model Binding" tab enabled though. Here's my view code on the postback:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index([ModelBinder(typeof(MyModelBinder))]HomeIndexViewModel viewModel)
  {
      return this.View(viewModel);
  }
  
  public class MyModelBinder : IModelBinder
  {
      public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
      {
          var viewModel = new HomeIndexViewModel();
  
          viewModel.Name = "From model binder.";
          return viewModel;
      }
  }
  </code></pre>
  
  <p>Using the PRG idea, I re-wrote my code like so:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index([ModelBinder(typeof(MyModelBinder))]HomeIndexViewModel viewModel)
  {
      return this.RedirectToAction("SaveSuccess");
  }
  
  public ActionResult SaveSuccess(HomeIndexViewModel viewModel)
  {
      return this.View();
  }
  </code></pre>
  
  <p>The problem I have is that, in the History tab, I can see that "Model Binder" is enabled when I inspect the "SaveSuccess" request, adn that shows the DefaultModelBinder in use. However, my Index request, where I use my custom model binder, does not enable the tab.</p>