I created a new project in my solution. The project is ASP.NET Core application.
The problem is that When I click on IISExpress
to start debugging I have this error:
These are the project property Debug

I don't know what to do... Can someone help me?
EDIT This is my launchSettings.json
{
"iisSettings": {
"windowsAuthentication": true,
"anonymousAuthentication": true,
"iis": {
"applicationUrl": "http://localhost:8083/backendCore",
"sslPort": 0
},
"iisExpress": {
"applicationUrl": "http://localhost:8083",
"sslPort": 0
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "backend",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"backendCore": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
},
"prova": {
"commandName": "IIS",
"launchBrowser": true,
"launchUrl": "backend"
}
}
}
and startup.cs
namespace backendCore
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UsePathBase("/backend"); //Add this line
app.UseDeveloperExceptionPage();
}
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
this is the snippet of my controller (but the backend never stops here)
namespace backendCore.Controllers
{
public class AuthController : ControllerBase
{
[Route("api/Auth/{language}/guest")]
[HttpPost]
public ActionResult guestAuth(string language)
{
return Ok(true);
}
}

