title: This localhost page can’t be found. No webpage was found for the web address "..."
body: <p>I am trying to create a web API, but when I execute the program the following message pops up:
  This localhost page can’t be found. No webpage was found for the web address "TheAdress".</p>
  
  <p>I am learning, so I am not sure if the code I am gonna post will help (it is all the code that I have written).</p>
  
  <p>Controllers:</p>
  
  <pre><code>namespace ApiPractice.Controllers
  {
      [Route("api/[controller]")] //puts the endpoint communication in "Auto" (It takes it from AutoController)
      [ApiController] //automate code 
      public class AutoController : ControllerBase
      {
          private readonly AplicationDbContext context;
          public AutoController(AplicationDbContext context)
          {
              this.context = context;
          }
  
          [HttpGet]
          public ActionResult&lt;IEnumerable&lt;Usuarios&gt;&gt; Get()
          {
              return context.Users.ToList();
          }
      }
  }
  </code></pre>
  
  <p>Entities:</p>
  
  <pre><code>namespace ApiPractice.Entities
  {
      public class Usuarios
      {
          public int Id { get; set; }
          public string Nombre { get; set; }
      }
  }
  </code></pre>
  
  <p>Contexts</p>
  
  <pre><code>namespace ApiPractice.Context
  {
      public class AplicationDbContext: DbContext
      {
          public AplicationDbContext (DbContextOptions&lt;AplicationDbContext&gt; options) : base(options) //does some weird shit, but it works.
          { }
  
          public DbSet&lt;Usuarios&gt; Users { get; set; }  //Somehow the database creates a table based on Users.
      }
  }
  </code></pre>
  
  <p>Startup.cs, ConfigureServices method:</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
      //No idea what this does, but I needed for the creation of the table
      services.AddDbContext&lt;AplicationDbContext&gt;(options =&gt; options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"))); 
  
      services.AddControllers();
  }
  </code></pre>
  
  <p>I also changed the launch browser property on the debug menu inside the properties of the project for api/autores... No idea why I had to do it...</p>
  
  <p>That is all, if you need anything else I will provide it to you as soon as I see your request, thank you so much for your time, hope everyone has a good day. (:</p>