I created a brand new asp.net core web api app using default template with HTTPS configured.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseMvc();
}
When I run the app as console application, then https site (https://localhost:5001/api/values) is accessible and gave API result.
Now when I deployed this web API as Window Service, then site http site is accessible, but https site (https://localhost:5001/api/values) is not accessible? Whats the reason? Thanks!
