I am developing an ASP.NET Core and when the run it in Visual Studio, it opens this url:
https://localhost:44392/
Now if I try to open this url http://localhost:44392/, I will get this error:
This site can't be reached
The connection was reset.
I try to comment out this line of code
app.UseHttpsRedirection();
in the startup.cs file, but that did not solve the issue.
Any advice?
EDIT
The launchsettings.json is as follow:-
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:59662",
"sslPort": 44392
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"***: {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}