I am new to ASP.NET Core and don't know much. I am using app.UseDeveloperExceptionPage() but still not able to see developer exception page. I am using windows OS. I have upload the project to Github. Here is the URL - https://github.com/gupta6/ConsoleToApI1 .
Below is my code.
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;
namespace ConsoleToApI1
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseRouting();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}

