title: net core 2 Failed to load resource: the server responded with a status of 404 (Not Found)
body: <p>I start build App with ASP.Net on Google Cloud Platform. 
  Net Core 2.0 MVC pattern</p>
  
  <p>I use two Areas
  and one HomeControllre in a root of Project</p>
  
  <p>This is a ClinicControllel.cs class</p>
  
  <pre><code>using System.Collections.Generic;
  using System.Data.Common;
  using System.Threading.Tasks;
  using GcpProject_AspNet.Areas.Clinic.Models;
  using Microsoft.AspNetCore.Mvc;
  using Microsoft.Extensions.Logging;
  
  namespace GcpProject_AspNet.Areas.Clinic.Controllers
  {
      [Area("Clinic")]
      [Route("admin/[controller]")]
      //[Route("[controller]")]
      //[Authorize]
      public class ClinicController : Controller
      {
          private readonly ILogger _logger;
  
          private readonly DbConnection _connection;
  
          private const int _pageSize = 10;
  
  
          public ClinicController( DbConnection connection , Microsoft.Extensions.Logging.ILogger&lt;ClinicController&gt; logger1)
          {
              _logger = logger1;
              _connection = connection;
              if (_connection.State == System.Data.ConnectionState.Closed)
                  _connection.Open();
              //User.Identities.g
          }
  
          [Route("{page:int?}")]
          [HttpGet("index")]
          public async Task&lt;IActionResult&gt; Index(string userAgent, string nextPageToken)
          {
              if (string.IsNullOrEmpty(userAgent))
              {
                  userAgent = Request.Headers["User-Agent"];
              }
  
              using (var LookUpcommand = _connection.CreateCommand())
              {
  
                  LookUpcommand.CommandText = @"SELECT * FROM Clinics";
                  List&lt;string&gt; line = new List&lt;string&gt;();
  
                  var reader = await LookUpcommand.ExecuteReaderAsync();
  
                  ClinicModel clinicModel = new ClinicModel()
                  {
                      ClinicView = new List&lt;ClinicEntry&gt;()
                  };
  
                  List&lt;ClinicEntry&gt; lst = new List&lt;ClinicEntry&gt;();
  
  
  
                  while (await reader.ReadAsync())
                  {
  
                      //clinicModel.ClinicView.Add(new ClinicEntry()
                      lst.Add(new ClinicEntry()
                      {
                          Clinic_Address = reader.GetString(5),
                          Clinic_Name = reader.GetString(1),
                          Phone = reader.GetString(2),
                          MobilePhone = reader.GetString(3),
                          E_Mail_Address = reader.GetString(4),
                          ClinicId = reader.GetInt32(0)
                      });
                      clinicModel.ClinicView = lst.ToArray();
                  }
  
  
                  _logger.LogInformation("Home page hit!");
                  _connection.Close();
                  return View(clinicModel);
              }
          }
          [HttpGet("Details/{id}")]
          public ActionResult Details(long?id)
          {
              return View();
          }
          [HttpGet("Create/{id}")]
          public IActionResult Create()
          {
              return View();
          }
      }
  }
  </code></pre>
  
  <p>Method Index() - work correct other methods Create and Details not work correctly where Application call Method Details I see "Blank Page" in explorer
  if I Press F12 in part Network message appears "Failed to load resource: the server responded with a status of 404 (Not Found)". I cannot set the breakpoint in methods Create() and Details().</p>
  
  <p>File starup.cs </p>
  
  <pre><code>    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
  {
      // Only use Console and Debug logging during development.
      loggerFactory.AddConsole(Configuration.GetSection("Logging"));
      loggerFactory.AddDebug();
  
      if (env.IsDevelopment())
      {
          app.UseDeveloperExceptionPage();
          app.UseBrowserLink();
      }
      else
      {
          app.UseExceptionHandler("/Home/Error");
        //  app.UseExceptionHandler("Clinic/Error");
          app.UseGoogleExceptionLogging();
          // Send logs to Stackdriver Logging.
          loggerFactory.AddGoogle(GetProjectId());
      }
  
     // app.UseAuthentication();
  
      app.UseStaticFiles();
      app.UseGoogleTrace();
  
      app.UseMvc(routes =&gt;
      {
          routes.MapRoute("areaAccount", "{area:exists}/{controller=Account}/{action=index}/{id}");
          routes.MapRoute("areaClinicIndex", "{area:exists}/{controller=Clinic}/{action=Index}/{id}");
          routes.MapRoute("areaClinicDetails", "{area:exists}/{controller=Clinic}/{action=Delails}/{id}");
  
          // for first controller   
          routes.MapRoute(name: "default",template: "{controller=Home}/{action=Index}/{id?}");
       // routes.MapRoute(name:"default",template: "{controller=ApplicationRole}/{action=Index}/{id?}");
  
      });
  }
  </code></pre>
  
  <p>What are problems ??
  in Chrome <a href="http://localhost:61878/admin/Clinic/index" rel="nofollow noreferrer">http://localhost:61878/admin/Clinic/index</a> - correct and work properly.
  where I choose one of item I see <a href="http://localhost:61878/Clinic/Details/1" rel="nofollow noreferrer">http://localhost:61878/Clinic/Details/1</a></p>