Try the following steps to get rid of the above error in Visual Studio.
1. You select "Properties" tab in Solution Explorer, copy the SSL URL.
2. You can right click your application in visual studio and click "Properties", then click "Web" tab and you can find "Project Url" input box. Change the url in this input box from original http://localhost:4561
to https://localhost:44362
.