title: Blank screen in rendering Page Areas after update from Asp.net MVC 4 to MVC 5
body: <p>I have a Facebook Application as an Area inside my Web Site. It has been developed using the Microsoft.Mvc.Facebook namespace and following the Facebook Template shipped with Visual Studio 2012.</p>
  
  <p>Everything worked fine until i upgraded my project to ASP.NET MVC 5.
  Now, whenever i open the app from Facebook, i got a white screen. No exception. No application_error. anything. I can even debug the code step by step down to the view and the layout, it looks everything fine, but...it doesn't render anything.</p>
  
  <p>Some info could help. This is my AreaRegistration:</p>
  
  <pre><code>public class FacebookAreaRegistration : AreaRegistration
      {
          public override string AreaName
          {
              get
              {
                  return "Facebook";
              }
          }
  
  
          public override void RegisterArea(AreaRegistrationContext context)
          {
              context.MapRoute(
                  name: "Facebook_default",
                  url: "Facebook/{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                  namespaces: new[] { "MvcPoli.Areas.Facebook.Controllers" }
              );
  
  
              DisplayModeProvider.Instance.Modes.Insert(0, new DefaultDisplayMode("Facebook")
              {
                  // Register a DisplayMode of "Facebook" for views that are rendered from this area
                  ContextCondition = c =&gt; c.Request.Url.Segments.Length &gt;= 2 &amp;&amp; c.Request.Url.Segments[1].TrimEnd('/').Equals("facebook", StringComparison.OrdinalIgnoreCase)
              });
          }
      }
  </code></pre>
  
  <p>All the controllers have been created inside the area by simply inheriting from the relative controller in the main site. For Example:</p>
  
  <pre><code>public class ActionController : MvcPoli.Controllers.ActionController
      {
  
  
      }
  </code></pre>
  
  <p>The only exception is the HomeController that has different signatures due to facebook routines (i removed the business code here):</p>
  
  <pre><code>public class HomeController : MvcPoli.Controllers.PoliBaseController
      {
          //
          // GET: /Facebook/Home/
  
          [FacebookAuthorize("email", "user_hometown", "user_location")]
          public async Task&lt;ActionResult&gt; Index(FacebookContext context)
          {
           }
  
  public ActionResult Permissions(FacebookRedirectContext context)
          {
              if (ModelState.IsValid)
              {
                  return View(context);
              }
  
              return View("Error");
          }
        }
  </code></pre>
  
  <p>But, as said, everything worked fine before upgrade.
  Can you help me please?!?</p>