title: ASP.NET Core publishing to IIS Blank Loading Screen
body: <p>I have published asp.net core 1.0 application to IIS version 8.5 as a new website. 
  I can only able to see the login page. After the successful login, getting the blank page. perhaps routing is not working perfectly.I don't have any issues running this app on my Dev machine.see my config and startup </p>
  
  <pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
      {
          loggerFactory.AddConsole(Configuration.GetSection("Logging"));
          loggerFactory.AddDebug();
  
          app.UseApplicationInsightsRequestTelemetry();
          app.UseSession();
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
              app.UseBrowserLink();
          }
          else
          {
              app.UseExceptionHandler("/Home/Error");
          }
  
          app.UseApplicationInsightsExceptionTelemetry();
  
          app.UseStaticFiles();
          app.UseMvc(routes =&gt;
          {
              routes.MapRoute(
                  name: "default",
                  template: "{controller=Login}/{action=Login}/{id?}");
          });
      }
  
  &lt;system.webServer&gt;
  &lt;handlers&gt;
    &lt;add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/&gt;
  &lt;/handlers&gt;
  &lt;aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false"/&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Login Controller</p>
  
  <pre><code>public class LoginController : Controller
  {
      private StaunchContext _context;
      public LoginController(StaunchContext context)
      {
          _context = context;
      }
  
      // GET: /&lt;controller&gt;/
      public IActionResult Login()
      {
          return View();
      }
  
      [HttpPost]
      public async Task&lt;IActionResult&gt; Login(UserDetails users)
      {
          if (ModelState.IsValid)
          {
              var exist =await _context.UserDetails.SingleOrDefaultAsync(x =&gt; x.Email == users.Email &amp;&amp; x.Password == users.Password);
              if ((exist!=null)&amp;&amp; exist.Id &gt; 0)
              {
                  TempData["Users"] = JsonConvert.SerializeObject(exist);
                  HttpContext.Session.SetString("Email", exist.Email);
                  return RedirectToActionPermanent("Index", "Search");
              }
              else
              {
                  ModelState.AddModelError("loginerror", "Invalid username or password");
              }
          }
          return View(users);
      }
  </code></pre>