I created an empty asp.net core app using VS2017. Only thing I changed is the "sslPort":
property in the launchSettings.json file.
When I click run IIS Express chrome opens with url https://localhost:9995/
and gives the This site can't be reached The connection was reset.
error
My launchSettings.json is the following
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:39566",
"sslPort": 9995
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"JccWeb2": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
What am I doing wrong?
As stated in the docs, you use an incompatible port for ssl with IIS Express.
Instead of "sslPort": 9995
, replace with a port number between 44300 and 44399.
If you want to test SSL access to your site, you can do this with IIS Express by using an SSL port between 44300 and 44399 and using the IIS Express self-signed certificate. Trying to use SSL with a port outside this range results in a URL binding failure when your website is launched under IIS Express.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With